UE2 - UT2kX Create a direct mapping between mouse and movement

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

JohnK

New Member
Oct 29, 2004
28
0
0
Hi,

I'm trying to make a new control system using a trackball kind of device made from an optical mouse. I want to create a direct mapping between forward movement and turning and the movement of the trackball. Looking through the code it looks like there's a lot of processing of mouse movements going on which I'd like to dispense with. I'm currently over-riding PlayerInput and setting aForward = aBaseY. It looks like aForward gets turned into a vector NewAccel in PlayerController.PlayerMove, which then gets passed to Playercontroller.ProcessMove, which sets Pawn.Acceleration.

Here I get lost. Can anyone tell me how Pawn.Location gets updated? And where is Pawn.Groundspeed applied?

Cheers,

John