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.

3 Dimensional Chat / Rotating a special effect object to go from one point to another...

Author
Message
Xander
21
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 21st Jun 2003 01:50
I have some special effects on my game like lightning and zapping things and beams. They are just textured plains that go from one point to another. It was working fine when I was just using the X and Z directions, but now I want them to go from any point to another. What formulas should I use for this?
EX:
x rotate object zapobject,atanfull(z1-z2,y1-y2)
z rotate object zapobject,atanfull(x1-x2,z1-z2)
y rotate object zapobject,atanfull(x1-x1,z1-z1)

These aren't the formulas that I am using, but just examples. Can someone help me with it?
Xander
Bolt of Bolt Software Productions

Login to post a reply

Server time is: 2024-05-20 12:44:48
Your offset time is: 2024-05-20 12:44:48