Projectile Rotation and collision

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

Brood_of_Evil

Selene's martyr
Nov 3, 2001
147
0
0
45
Look outside your window!
Visit site
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 :)
 

Postal

I apear to have lost my pin.
Nov 14, 1999
1,388
0
0
WoD.BeyondUnreal.com
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.
 

EasyRaider

Crazy coder
Sep 21, 2001
74
0
0
43
Norway
I'm not quite sure what you're asking. Should it point straight out from the wall? If so, it's really easy:

function HitWall(...
{
SetRotation(Rotator(HitNormal));

[edit]
Whoops! Forgot SetRotation() :eek:
 
Last edited: