![]() |
Platformer Pro
2.3.2
A platform game kit for Unity.
|
Changes facing direction by rotating the model. More...
Public Attributes | |
float | rotationOffset |
An extra rotation applied to all rotations (use this to easily account for backed in model rotations). More... | |
bool | dontRotateInZ |
If true offset the parent animation so the sprite doesn't rotate in the z direction More... | |
AnimationState[] | faceBackAnimations |
List of animation states in which the character should face backwards (0 degrees). More... | |
AnimationState[] | faceForwardAnimations |
List of animation states in which the character should face forwards (180 degrees). More... | |
AnimationState[] | faceRightAnimations |
List of animation states in which the character should face right (90 degrees). More... | |
AnimationState[] | faceLeftAnimations |
List of animation states in which the character should face left (-90 degrees). More... | |
float | rotationSpeed |
How fast the character rotates. More... | |
Protected Member Functions | |
void | SetTargetRotation () |
Sets the target rotation based on character state and direction. More... | |
void | RotateToTarget () |
Does the rotation. More... | |
Protected Attributes | |
IMob | character |
The character reference. More... | |
Quaternion | targetRotation |
Desired rotation. More... | |
Changes facing direction by rotating the model.
|
protected |
Does the rotation.
|
protected |
Sets the target rotation based on character state and direction.
|
protected |
The character reference.
bool PlatformerPro.ModelRotationDirectionFacer.dontRotateInZ |
If true offset the parent animation so the sprite doesn't rotate in the z direction
AnimationState [] PlatformerPro.ModelRotationDirectionFacer.faceBackAnimations |
List of animation states in which the character should face backwards (0 degrees).
AnimationState [] PlatformerPro.ModelRotationDirectionFacer.faceForwardAnimations |
List of animation states in which the character should face forwards (180 degrees).
AnimationState [] PlatformerPro.ModelRotationDirectionFacer.faceLeftAnimations |
List of animation states in which the character should face left (-90 degrees).
AnimationState [] PlatformerPro.ModelRotationDirectionFacer.faceRightAnimations |
List of animation states in which the character should face right (90 degrees).
float PlatformerPro.ModelRotationDirectionFacer.rotationOffset |
An extra rotation applied to all rotations (use this to easily account for backed in model rotations).
float PlatformerPro.ModelRotationDirectionFacer.rotationSpeed |
How fast the character rotates.
|
protected |
Desired rotation.