Skip to content

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

License

Notifications You must be signed in to change notification settings

Small-Fish-Dev/shrimple_character_controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shrimple Character Controller

Preview_1.mp4

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;
}

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages