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 / rotate towards a point in 3d space

Author
Message
PaTTE
20
Years of Service
User Offline
Joined: 6th Aug 2004
Location:
Posted: 13th Mar 2007 22:47
I would like to rotate an object towards an point in 3d space.
I know the coordinates for the point.
I've tried the "point object" it did the job but I'd like to make the object turn at a certain speed and not instant as it does.

So then I was going to try the the "rotate object" command.
By adding a small value to the rotate angle each frame.
But I was never able to figure out how to get the angle from my object to the point in space I had.

Any suggestion on how I can solve this?
RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 14th Mar 2007 04:18
Store your object's current angles.
Point the object to wherever.
Store your object's new angles.
Re-rotate your object to it's old angles.
Use curveangle to slowly make the object's current angles equal the angles received from point object.
Finito.

Login to post a reply

Server time is: 2024-11-25 21:58:48
Your offset time is: 2024-11-25 21:58:48