Panda Physic engine : simulating gravity.

Hi again

looking at your code I see you attached actor node to the model node (test). In the manual they show attaching the model to the actor. Also they show attaching the gravityFN to the top render node, it looks like you attach it to the model node.

see:
http://www.panda3d.org/manual/index.php/Enabling_physics_on_a_node
and
http://www.panda3d.org/manual/index.php/Applying_physics_to_a_node

I think since your gravityFN is “hanging” under the model node as a child, so that force never gets applied to the model. That’s why they put the forces at the same parent level as the models that need to have the force applied to them.

try doing:
NodePath gravityFNP = window->get_render().attach_new_node(&gravityFN);