2D Joint Motor For Angle Joint
Posted: Tue Aug 07, 2007 7:35 pm
In my 2D physics engine I have a 'FixedAngleJoint'. This joint constrains two bodies to remain at some fixed angle. This joint is implemented using a Baumgarte factor and the ideas in Box2D.
I want to dynamically modify the target angle in order to allow the user to control objects in my app. So far, I've just been changing the target angle directly based on mouse-position or keyboard input.
I have a feeling there is a smarter way to do this using motors. I'm looking for some info on how to implement motors for situation as described above.
I'm aware of the previous discussion (http://www.continuousphysics.com/Bullet ... .php?t=517) on how Baumgarte joints don't necassarily hold up well to strong motors but I'm hoping it will be good enough for my purposes.
-Jeff
I want to dynamically modify the target angle in order to allow the user to control objects in my app. So far, I've just been changing the target angle directly based on mouse-position or keyboard input.
I have a feeling there is a smarter way to do this using motors. I'm looking for some info on how to implement motors for situation as described above.
I'm aware of the previous discussion (http://www.continuousphysics.com/Bullet ... .php?t=517) on how Baumgarte joints don't necassarily hold up well to strong motors but I'm hoping it will be good enough for my purposes.
-Jeff