UE3 - UDK Rotating the player

  • 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.

Hyper_Shado

aspiring CS Major
Dec 7, 2009
11
0
0
I've been messing around with floor normals, but I cannot figure out how to get the Pawn to "rotate" with the floor, so that it's always standing perpendicular to a slope. Any help?
 

Wormbo

Administrator
Staff member
Jun 4, 2001
5,913
36
48
Germany
www.koehler-homepage.de
First of all, stock code doesn't provide much support for anything that doesn't consider positive Z axis as "up". You might want to look into PHYS_Spider, as that's the only physics mode to combine walking with non-standard floor normals. It should automatically update your Pawn's rotation in spider physics mode so the feet are on the wall the Pawn is standing on. Note that jumping (PHYS_Falling) may override the rotation and consider positive Z to be "up" again.
 

Hyper_Shado

aspiring CS Major
Dec 7, 2009
11
0
0
I haven't tried it much yet, but from what they say PHYS_Spider does not rotate you... your head is just stuck to the ceiling or whatever. Lol.

The jumping isn't a problem, because if my player jumps off of a wall I want it to re-orient with the ground. Let's just say this isn't a Gravity-based thing so much as Running on walls. I was just checking here to see if there was any "easy answer" I had overlooked. For now, I will keep learning more Script and stuff.