Sandbox Logo

Shrimple Character Controller

A shrimple yet versatile Character Controller/Move Helper that performs great.
Performs 60%-200% better than standard Character Controller.


You can find example scenes for the Walker, Roller, and Flyer here: Controller Example Scenes

Made from scratch using the classic Collide and Slide method.

For any issues please report them here: Github Issues

How to use

You can find code examples for the Walker, Roller, and Flyer here: Example Controllers

It all boils down to:

Controller.WishVelocity = Vector3.Forward;
Controller.Move();


You'll have to call .Move() only if your Controller options "Manual Update" is set to true. Otherwise you can set it to false and it will always be simulated.

You are also able to manually update the GameObject's transform rather than letting the Controller do it:

Controller.WishVelocity = wishDirection * wishSpeed;
var controllerResult = Controller.Move( false );

if ( controllerResult.Position.z <= 999f ) // Out of bounds!
{
    Destroy();
}
else
{
    Transform.Position = controllerResult.Position;
    MyVelocity = controllerResult.Velocity;
}

Shrimple Character Controller

A shrimple yet versatile character controller/move helper that performs great

Created
9/1/2024
Updated
10/3/2024
In Collections
Referenced By
Dependencies
Reviews
🥇 x 1