![]() |
Platformer Pro
2.3.2
A platform game kit for Unity.
|
An object that can be pushed and pulled. More...
Public Member Functions | |
virtual void | Pull (IMob character, Vector2 amount) |
Pull the pullable. More... | |
![]() | |
virtual void | Push (IMob character, Vector2 amount, bool pushAsForce) |
Push this pushable. More... | |
Additional Inherited Members | |
![]() | |
bool | resetVelocityOnPush = true |
Should we reset the velocity to zero before pushing. More... | |
float | additionalDynamicFriction = 0.0f |
Should we apply additional friciton when moving? Helps to stop boxes sliding over the character etc when pushing as translate. More... | |
float | originalY |
When using move position we use this variable to help us simulate gravity. More... | |
bool | targetSet = false |
Do we have a target position More... | |
Vector2 | targetPosition |
The target position for a MovePosition move. More... | |
bool | forceSet = false |
Do we have a force to add. More... | |
Vector2 | force |
The force to apply when using force based pushing. More... | |
float | mass |
Original mass, we store it here as we change it while pushing if push mode is MovePosition(). More... | |
bool | physicsUpdatedThisFrame |
Has FixedUpdate been executed? More... | |
new Rigidbody2D | rigidbody2D |
Reference to the rigidbody 2D. More... | |
bool | canRotate |
Can we rotate? More... | |
float | canRotateTimer |
Tracks how long after pushing before we can rotate again. More... | |
![]() | |
const float | canRotateTime = 0.066f |
How long after pushing before we can rotate again. More... | |
![]() | |
virtual float | Mass [get] |
Get the pushables weight. More... | |
![]() | |
float | Mass [get] |
Gets the objects mass. More... | |
An object that can be pushed and pulled.
|
virtual |
Pull the pullable.
character | Character doing the pulling. |
amount | Amount being pulled. |
Implements PlatformerPro.IPullable.