View Full Version : Projectile Rotation and collision
9th Nov 2001, 12:20 AM
Ok here's the question: How can I make a projectile (PHYS_Projectile), change it's rotation perpendicular to the surface it has collided with (with HitWall perhaps?) If you're not sure of what I am talkin about, check jpg in the attachment. Please I will appreciate your response. Thanks :)
9th Nov 2001, 12:24 AM
Umm sorry here's the attachment
9th Nov 2001, 06:17 AM
Damn, I did that once, but I cant recall how.
I was messig aroung with making a grappling hook, and I wanted the hook to go in at an angle, and I accidenty set it up so it was like how you said.
I will look thru my code archive and see if I can find the code to help.
9th Nov 2001, 06:40 AM
I'm not quite sure what you're asking. Should it point straight out from the wall? If so, it's really easy:
Whoops! Forgot SetRotation() :o
9th Nov 2001, 10:54 AM
As I have fathomed it, HitNormal is a vector that is 90 degrees up from the plane it lands on.
10th Nov 2001, 03:53 AM
Thanks guys; EasyrideR_/\ the code worked, thanks a lot.
10th Nov 2001, 12:03 PM
papinshu: yes, it is.
vBulletin® v3.8.7, Copyright ©2000-2014, vBulletin Solutions, Inc.