Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | ozergul |
Hello
I am trying to rotate two rigidbodies together. What’s the correct way?
what’s the purpose of rotating them ?
do u want them to stop at hit … both or just one ?
got any real life example (to make it simpler)?
Xtremezero | 2020-01-05 21:56
This is my character actually. The plan is to make bouncing ball game, but not with just one ball. With two. And these are rotating around center position
ozergul | 2020-01-05 22:28
How about making this a single RigidBody with either a single mesh consisting of two balls or two ball meshes. Plus two collision shapes. You can make it rotate via the add_torque method.
It will get more complicated if you actually want two separate rigid bodies. In that case you would use one or more rigidbodies between the balls which are joined with joints. (Emulating some kind of rope/chain).
A completely other way would be to do physics on your own and use kineticbodies instead.
wombatstampede | 2020-01-06 09:06