Making go-cart like movement with Third person "CharacterMovementComponent"

Hello everyone,

I am trying to create “Mario Kart” like movement using the third person character. I know many of you will suggest using the vehicle movement component but that is not my goal.

My current issues are - Using the controller rotation for movement makes the camera rotate a full 360deg but i don’t want the character to go backwards / turn backwards.

What i want is -

  • The movement of the character is handled by the gamepad
    i.e. Forward Left and Right ( No backward movement ).
  • The camera is always behind the character like we have in mario kart and the character stays in the center of the screen.
  • The camera can’t be controlled in any manner ( no yaw input on camera )

So is there a way ( through custom code or by any setting in CharacterMovementComponent ) to achieve such a movement.

Any and all help is appreciated. Do let me know if i’ve missed some information.

Thanks

you’d want a custom movement system for arcade like mario kart movement,

but excluding that you can change the code to however you like, so clamp the forward input to 0-1 so it cant go backwards and disable all camera controls.

1 Like

Thanks @Auran13 , I’ve done some of that. I am still looking for ways to improve this.

The camera controls are off, but when i make turns the camera comes closer to the Character. I assume it is due to the spring arm and the collision detection. Is there a way to minimize this.

Maybe change the collision size of camera or some event through which i can reset the camera to it’s initial position on detection of collision.

yep, you can disable all collision on the spring arm