Hi,
I would like to create a platform that rotates about a given point. So, if you think of a clock face, i want my platform to be at the end of the big hand as it rotates. The platform itself shouldn't rotate though (i.e. I want to be able to place something on the platform as it rotates).
I have this working but doing the rotation manually (i.e. kinematic body and setting the position myself). But i guess the correct solution would be to create a revolution joint with a fixed joint limit, dynamic body and relevant force to do the rotation.
Has anyone done something like this before and care to point me in the right direction? I'm kinda new to all this and not sure if this is even close to a solution.
Thanks.
I would like to create a platform that rotates about a given point. So, if you think of a clock face, i want my platform to be at the end of the big hand as it rotates. The platform itself shouldn't rotate though (i.e. I want to be able to place something on the platform as it rotates).
Code:
* <-- rotate point
\
\
__\____
|_______| <-- platform which always faces up as it rotates
\
\
__\____
|_______| <-- platform which always faces up as it rotates
I have this working but doing the rotation manually (i.e. kinematic body and setting the position myself). But i guess the correct solution would be to create a revolution joint with a fixed joint limit, dynamic body and relevant force to do the rotation.
Has anyone done something like this before and care to point me in the right direction? I'm kinda new to all this and not sure if this is even close to a solution.
Thanks.