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.

Newcomers DBPro Corner / my turn object command apears to be on drugs!

Author
Message
DBasic Khan
20
Years of Service
User Offline
Joined: 3rd Dec 2003
Location: Alpha Quadrent, Sector 1,1 SOL SYS
Posted: 29th Jan 2004 21:00
Every time i give the command turn object left, the object points strait alon the z axis before it begins to turn. I am trying to use this cammand to get my AI to spin in circles while waiting for prey (look at my most resent post) but i am having so much troble with my turn command!
Bishop
21
Years of Service
User Offline
Joined: 18th Dec 2002
Location: In my favorite chair...
Posted: 29th Jan 2004 22:07
i think that this is because that when the object turns right or left using those commands, it will turn to 0 degrees before the turn is made.....i would use:
yrotate object 1,wrapvalue(object angle y(1)+5)

cheers,
Bishop

"When you were born, you cried and the world rejoiced. Live so when you die, the world cries and you rejoice."
DBasic Khan
20
Years of Service
User Offline
Joined: 3rd Dec 2003
Location: Alpha Quadrent, Sector 1,1 SOL SYS
Posted: 30th Jan 2004 20:14
nope its still resting its oreintation
DBasic Khan
20
Years of Service
User Offline
Joined: 3rd Dec 2003
Location: Alpha Quadrent, Sector 1,1 SOL SYS
Posted: 30th Jan 2004 20:17
ohh wait never mind i fixed it! stupid me!
if had it like this:
yrotate object 2,wrapvalue(object angle y(1)+5)
needs to be:
yrotate object 1,wrapvalue(object angle y(2)+5)

problem: object angle y(1)
thanks a million bishop

Login to post a reply

Server time is: 2024-09-21 18:47:06
Your offset time is: 2024-09-21 18:47:06