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 ScenesMade from scratch using the classic
Collide and Slide method.
For any issues please report them here:
Github IssuesHow to use
You can find code examples for the Walker, Roller, and Flyer here:
Example ControllersIt 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;
}