Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Vector Help
Vector Help
2002-11-30, 10:59 AM #1
I have a projectile, its moving. I want it to keep moving at that speed, but change its direction based on the lookvector of another object. How would I go about doing this? I've tried simply changing its lookvector, but, sadly, things don't seem to be that easy.
2002-11-30, 4:18 PM #2
SPEED would be the velocity from the projectile template.

SetThingLook(bullet, NEWLVEC);
SetThingVel(bullet, VectorScale(GetThingLVec(bullet), SPEED));



[This message has been edited by The_New_Guy (edited December 01, 2002).]
- Wisdom is 99% experience, 1% knowledge. -
2002-11-30, 11:56 PM #3
Assuming NEWLVEC is a normalized vector...

------------------
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
2002-12-01, 5:02 AM #4
Quote:
<font face="Verdana, Arial" size="2">Originally posted by zagibu:
Assuming NEWLVEC is a normalized vector...

</font>


Opps yeah your right, I fixed it now.
- Wisdom is 99% experience, 1% knowledge. -
2002-12-02, 9:26 AM #5
thanks for the help, i got it to work.

↑ Up to the top!