How to set gravity function to the model?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
ming
Posts: 11
Joined: Thu May 04, 2006 4:16 pm

How to set gravity function to the model?

Post by ming »

I can apply the gravity for the camera
like in this code

scene::ISceneNodeAnimator* anim = smgr->createCollisionResponseAnimator(
selector, camera, core::vector3df(30,50,30),
core::vector3df(0,-3,0),
core::vector3df(0,50,0));

but still couldn't apply for model...is their any guideline?
strale
Posts: 119
Joined: Wed Nov 23, 2005 1:58 pm
Location: Lambrugo Italy
Contact:

Post by strale »

Hi

I belive you still have to load the animation
into a sene node

camera->addAnimator(anim);
anim->drop();


Bye
Post Reply