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 Professional Discussion / limb position x()

Author
Message
randi
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United States
Posted: 15th Feb 2003 07:35
Does DB know that 'limb position x(obj,lmb)' does not work?

'limb position y' and 'limb position z' both work, but X does not.
I sure could use this in my code right now too!

Randi
Scorpyo
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: italy
Posted: 15th Feb 2003 22:38
Actually, on my version , limb position etc..seems to return the offset of the limb from the center of the object..i had to use sin and cosine in order to translate that in real world coords..
randi
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United States
Posted: 16th Feb 2003 06:54
Yes... that is what 'limb position x()' does for me too.

Do you think you could show me some code to use sin and cosine to get the real world positions?
It sure would help.

Randi
ZomBfied
22
Years of Service
User Offline
Joined: 2nd Oct 2002
Location:
Scorpyo
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: italy
Posted: 16th Feb 2003 22:50
what i do is:
limbrealx#=objectrealx#+sin(objectangle#)*limboffsetfromcenter
limbrealz#=objectrealz#+cos(objectangle#)*limboffsetfromcenter
sorry for the verbose stuff but it is to make it understandable
cheers

Login to post a reply

Server time is: 2025-05-18 02:20:55
Your offset time is: 2025-05-18 02:20:55