Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / Newton help - global or local movement

Author
Message
aks74u
20
Years of Service
User Offline
Joined: 2nd Jun 2004
Location: arizona
Posted: 19th Dec 2005 03:47
ok so correct me if im wrong,
global is the world coordinates
local is the objects coordinates.

i would like to make movement like in the tomb raider or metal gear solid. i mean where if i press the left movment button the object will spin to that direction then move in that direction.


i have tried to mess with the demos "fps" and "jetpac".
they both seem to have a similar movement effect but they have very different code. the fps example uses global positioning but the jetpac uses local. i don't understnad why.

so here's my theory, i need to get which key is pressed. i then set up a vector of the objects rotation. then i add a force to rotate the object until it is pointing the direction i would like? next i set up a vector off position and add force to move in that direction.

so do i use local or global for these processes? any help would be great! thx so much for reading and im sorry if this is in the wrong forum, i wasn't sure.

Over And Out.

Login to post a reply

Server time is: 2024-11-21 18:42:21
Your offset time is: 2024-11-21 18:42:21