controling the player

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

controling the player

Postby xtravanta » Sat Nov 20, 2010 4:10 pm

Hi,

iam wondering how can i controll the player using the phsyics.

my player is a ball that is rolling over a platform and normaly i used irrlicht to .setPosition(vector3df pos)

but how is it done in newton ?

Greetz...
xtravanta
 
Posts: 5
Joined: Tue Nov 16, 2010 10:48 am

Re: controling the player

Postby KingSnail » Mon Nov 22, 2010 6:43 pm

There is a character controller example in the demos, you want to get the position that is generated in the transform callback of that demo and then .setPosition(vector3df(x,y,z));
Prepare to spend some time making things work as the character controller is not perfect but its still very good.
Working on an MMORPG powered by Newton Dynamics.
User avatar
KingSnail
 
Posts: 112
Joined: Sat Jan 02, 2010 9:55 pm

Re: controling the player

Postby duncan » Sat Mar 26, 2011 4:24 am

i also get this problem... i am using ogrenewt... have u found the solution....
duncan
 
Posts: 8
Joined: Sat Mar 26, 2011 4:19 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 0 guests

cron