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 / help with limb positioning

Author
Message
shadey
16
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 30th Aug 2013 20:32 Edited at: 30th Aug 2013 22:54
hi, i have just started to write a level editor for my own projects, using the limb commands seemed the most efficient way but i cannot seem to get them in the position of my 3d cursor, here is the code:





thanks for any help!
*** edit, sorry this is the correct code,i changed it back from something using wrong vars! ****

Hail to the king, baby!

http://davidjohnwheeler.blogspot.co.uk
Chris Tate
DBPro Master
17
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 30th Aug 2013 23:19
Subtract the parent object position from the cursor object position.

By offsetting the limb, you are setting their local position on a relative basis. The parent's rotation must be zero on all the axises.



It would have been nice to have an absolute limb placement command; unless I am mistaken, no such command exists.

shadey
16
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 30th Aug 2013 23:31
ah,thanks man, that works a treat, i can go forward now and create the types for each limb.

Hail to the king, baby!

http://davidjohnwheeler.blogspot.co.uk

Login to post a reply

Server time is: 2026-07-07 01:54:26
Your offset time is: 2026-07-07 01:54:26