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.

Dark Physics & Dark A.I. & Dark Dynamix / this command is not working

Author
Message
David iz cool
18
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 27th May 2007 23:36 Edited at: 27th May 2007 23:37
phy set rigid body postion


my code looks like this:

phy start
phy make rigid body static mesh 1
phy make rigid body dynamic box 2

do

gosub game

phy update
sync
loop

game:

if spacekey() then phy set rigid body position 2,0,50,0

return




i am using my own xfile ground for the static 1
and a xfile for the dynamic box 2

i also have about 60 other xfiles loaded which are not phy
the tree falls down the 1st time onto my ground but when i try to use the command phy set rigid body position..it doesnt work.it wont do anything.

David iz cool
18
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 28th May 2007 00:33
hey nevermind,i figured out what was wrong.i had a check to goto a gosub before my space command to set the rigid body.

Login to post a reply

Server time is: 2024-04-19 14:18:32
Your offset time is: 2024-04-19 14:18:32