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.

DarkBASIC Discussion / limb trouble

Author
Message
sarin
21
Years of Service
User Offline
Joined: 20th Mar 2004
Location: nowhere
Posted: 23rd May 2004 01:39
does anyone no how to turn a limb?

i dont mean using the rotate command. I mean like turn limb left or pitch up or something. I no u can do this with objects, but not limbs. Is there a way to do tihs?

Sarin
GameKit
22
Years of Service
User Offline
Joined: 6th Mar 2003
Location: USA, Staring Blankly at a Computer
Posted: 24th May 2004 03:08
Well... You will have to use the rotate comands, they are not too hard to understand...

"YRotate Object 1,WrapValue(Object Angle Y(1)+5)"
Works more or less the same as "Turn Object Right 1,5"

So for a limb you would say...
Rotate Limb [Obj#],[Limb#],Wapvalue(Limb Angle X([Obj#],[Limb#])+[Amount#]),Wapvalue(Limb Angle Y([Obj#],[Limb#])+[Amount#]),Wapvalue(Limb Angle Z([Obj#],[Limb#])+[Amount#])
...Instead of...
Pitch Limb Down [Obj#],[Limb#],[Amount#]
Turn Limb Right [Obj#],[Limb#],[Amount#]
Roll Limb Right [Obj#],[Limb#],[Amount#]
...It wont have exactly the same effect as Rotate commands are based on Real-World Angles...

...Well... I hope I helped...

Previously known as "Game_Creator".
The question is, why am I talking to myself? ...... And more importantly, why am I waiting for a reply?
sarin
21
Years of Service
User Offline
Joined: 20th Mar 2004
Location: nowhere
Posted: 25th May 2004 05:09
well, i solved my problem another way, but thanks anyways.
ill specify more what then problem was. i was using a rotate through the mousemove command. This was and error when i went into negative mouse moving.
my solution: make an object type of the limb. i use the mouse to rotate the object, and the limb would rotate according to the rotation of the object. I hid the object useing the hide command, and positioned it at the limb position.
again, thanks anyways.

Sarin

Login to post a reply

Server time is: 2025-05-23 23:53:52
Your offset time is: 2025-05-23 23:53:52