![]() |
Platformer Pro
2.3.2
A platform game kit for Unity.
|
A little class to rotate towars the direction of swim. More...
Public Attributes | |
float | rotationSpeed |
Speed we rotate at for air movement. More... | |
bool | rotateOnSurface |
If on the surface of water should we still rotate? More... | |
bool | snapImmediately = true |
Speed we rotate at when resetting back to 0. More... | |
Vector3 | rotationPoint |
point we rotate around. More... | |
Protected Member Functions | |
void | SetTargetRotation () |
void | RotateTowardsTarget () |
Rotates towrds target rotation. More... | |
Protected Attributes | |
IMob | character |
Cached reference to character. More... | |
float | targetRotation |
Desired rotation. More... | |
A little class to rotate towars the direction of swim.
|
protected |
Rotates towrds target rotation.
|
protected |
|
protected |
Cached reference to character.
bool PlatformerPro.SwimDirectionRotator.rotateOnSurface |
If on the surface of water should we still rotate?
Vector3 PlatformerPro.SwimDirectionRotator.rotationPoint |
point we rotate around.
float PlatformerPro.SwimDirectionRotator.rotationSpeed |
Speed we rotate at for air movement.
bool PlatformerPro.SwimDirectionRotator.snapImmediately = true |
Speed we rotate at when resetting back to 0.
|
protected |
Desired rotation.