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 / problem with getting rotation right

Author
Message
David iz cool
19
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 20th Jul 2007 18:47
hi,im trying to make a physics throw with my player so they can throw stuff.my problem is i use a character controller and i have to use the commands turn object left/right.
i need my thrown object to point in the same direction as the player but im not sure how to do this because if i use point object player angle x, angle y etc dbp doesnt point it correctly.

can someone help?
Bishop
21
Years of Service
User Offline
Joined: 18th Dec 2002
Location: In my favorite chair...
Posted: 21st Jul 2007 02:08 Edited at: 21st Jul 2007 02:17


...should do the trick =P This will align the thrown object to the same direction as the character.

Using point object, you need a specific coordinate for it wto point at. In theory, you could do something like;



...but it would be unwieldy and slow =P Just rotating the object is much faster.

Cheers,
Bish


Tux is my guildmaster.
David iz cool
19
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 21st Jul 2007 05:43
thanks i figured it out though finally lol!

using phy set rigid body rotation- great command lol tks!

Login to post a reply

Server time is: 2024-11-15 05:20:15
Your offset time is: 2024-11-15 05:20:15