This project has moved and is read-only. For the latest updates, please go here.

Creating a static, but moving body?

Topics: Developer Forum
Mar 5, 2008 at 4:36 PM
I know this sounds like a contradiction and probably is, but I want to be able to create a moving object (imagine a large rotating gear) that can't be moved or slowed in any way by other physics bodies in the scene, yet will affect them if it hits them during its rotation. So, if the giant gear is rotating, and the player throws a rock at it, the gear will knock the rock around but the rock won't affect the gear's rotation speed or position.

Is there a way to set up an object in this way? I know I could just set the mass/moment of inertia really high, but that doesn't seem like it guarantees it won't be affected; it just relies on hope.

Mar 6, 2008 at 12:36 PM
You shoudl be able to do this using a FixedRevolute joint combined with an AngleJoint. You dynamically update the TargetAngle of the angle joint to rotate the gear.