1 Attachment(s)
Rotating an object towards something
A somewhat simple example of slowly rotating an arrow to look directly at a mouse cursor. People seem to want to know how to do this so I just made an example that does two things:
1.)Determine the "angle" between two points (this is the most complicated part)
2.)Rotate and object slowly towards an angle, rather than just setting it instantaneously.
You don't need the "direction calculator" or any extra extensions. If my comments are confusing let me know and I'll try to explain them better. :P
Rotating an object towards something
A somewhat simple example of slowly rotating an arrow to look directly at a mouse cursor. People seem to want to know how to do this so I just made an example that does two things:
1.)Determine the "angle" between two points (this is the most complicated part)
2.)Rotate and object slowly towards an angle, rather than just setting it instantaneously.
You don't need the "direction calculator" or any extra extensions. If my comments are confusing let me know and I'll try to explain them better. :P
Re: Rotating an object towards something
cool but, how is that different then this: Rotating objects towards a point?
Re: Rotating an object towards something
cool but, how is that different then this: Rotating objects towards a point?
Re: Rotating an object towards something
Erm there was already a thread on the exact same thing. Heh, your method was similar to the one i used, though vortex's is the simplest by far (a few posts down in the thread).
Edit: looks like vortex got there first
I guess he musta missed it; its on the second page.
Re: Rotating an object towards something
Erm there was already a thread on the exact same thing. Heh, your method was similar to the one i used, though vortex's is the simplest by far (a few posts down in the thread).
Edit: looks like vortex got there first
I guess he musta missed it; its on the second page.
1 Attachment(s)
Re: Rotating an object towards something
XD
Oh well, I guess I missed that one. Anyway, I made the example so it can do the same thing with 32 directions, since people seem to want to be able to do that too. Check the second frame of this new example.
Re: Rotating an object towards something
XD
Oh well, I guess I missed that one. Anyway, I made the example so it can do the same thing with 32 directions, since people seem to want to be able to do that too. Check the second frame of this new example.