[ODE] Camera should be a body with zero mass?

Jon Watte hplus-ode at mindcontrol.org
Thu Jun 24 10:14:05 MST 2004


I do this in my camera code. When I detect a contact between camera and something else, I attach the contact joint to the camera body and to the static environment (NULL) rather than between the two bodies.

http://www.mindcontrol.org/~hplus/graphics/camera-description.html

Cheers,

			/ h+


-----Original Message-----
From: ode-bounces at q12.org [mailto:ode-bounces at q12.org]On Behalf Of
andresch at cox.net
Sent: Thursday, June 24, 2004 7:36 AM
To: ode at q12.org
Subject: [ODE] Camera should be a body with zero mass?



The camera in my simulation is implemented as a body/geom in ode. I want my camera to follow my character as it moves and rotates (third person), so I attach them to each other with a slider, and all is well except...
the camera's mass affects the characters movement.  I want the camera affected by the guy, but not the guy affected by the camera, in other words the camera should be a body with zero mass.  If I set it's mass to zero, bad things happen so I'm thinking you're not supposed to do that. How can I have a body/geom that reacts to the things it's joined to but does not affect them?

-Andy

_______________________________________________
ODE mailing list
ODE at q12.org
http://q12.org/mailman/listinfo/ode




More information about the ODE mailing list