![]() |
Platformer Pro
2.3.2
A platform game kit for Unity.
|
A wrapper class for handling moving on the ground that proxies the movement function to the desired implementation. More...
Public Member Functions | |
virtual bool | WantsGroundControl () |
Gets a value indicating whether this movement wants to control the movement on the ground. Default is false, with control falling back to default ground. Override if you want particular control. More... | |
virtual void | ApplySlopeForce () |
Applies slope force. More... | |
virtual float | ApplySlopeSpeedModifier (float speed) |
Adjusts speed to cater for vertical movement More... | |
virtual float | GetSpeed (float baseSpeed) |
Gets the ground speed. More... | |
virtual float | GetRunSpeed (float baseRunSpeed) |
Gets the run speed. More... | |
virtual float | GetAcceleration (float baseAcceleration) |
Gets the acceleration. More... | |
![]() | |
sealed override Movement | Init (Character character) |
Initialise this movement. More... | |
bool | IsMovementDataDifferent (MovementVariable[] originalMovementData) |
Determines whether this instances movement data is different from the supplied originalMovementData. More... | |
Protected Member Functions | |
virtual void | SnapToGround () |
Snaps the character to the ground. More... | |
Properties | |
new static MovementInfo | Info [get] |
Static movement info used by the editor. More... | |
virtual bool | SupportsSlidingOnSlopes [get] |
Gets a value indicating whether this PlatformerPro.Movement can support automatic sliding based on the characters slope. More... | |
![]() | |
virtual string | MovementType [get, set] |
The type of movement as a string. More... | |
virtual MovementVariable[] | MovementData [get, set] |
Data that should be applied to the movement type on init. More... | |
new static MovementInfo | Info [get] |
Static movement info used by the editor. More... | |
override bool | Enabled [get, set] |
A custom enable which base movements can use to pass on enable values. More... | |
override Movement | Implementation [get] |
Gets the underlying implementation. More... | |
Additional Inherited Members | |
![]() | |
Movement | implementation |
The class that will do the movement. More... | |
string | movementType |
The type of movement as a string. More... | |
MovementVariable[] | movementData |
Data that should be applied to the movement type on init. More... | |
A wrapper class for handling moving on the ground that proxies the movement function to the desired implementation.
|
virtual |
Applies slope force.
Reimplemented in PlatformerPro.GroundMovement_PhysicsWithRun, PlatformerPro.GroundMovement_PhysicsWithLoop, and PlatformerPro.GroundMovement_Physics.
|
virtual |
Adjusts speed to cater for vertical movement
speed |
|
virtual |
Gets the acceleration.
baseSpeed | Base acceleration. |
|
virtual |
Gets the run speed.
baseSpeed | Base run speed. |
|
virtual |
Gets the ground speed.
baseSpeed | Base speed. |
|
protectedvirtual |
Snaps the character to the ground.
|
virtual |
Gets a value indicating whether this movement wants to control the movement on the ground. Default is false, with control falling back to default ground. Override if you want particular control.
true
if this instance wants control; otherwise, false
.
Reimplemented in PlatformerPro.GroundMovement_Stairs, PlatformerPro.GroundMovement_SimpleLand, PlatformerPro.GroundMovement_RollOnLand, PlatformerPro.GroundMovement_RollOnButton, PlatformerPro.GroundMovement_Push, PlatformerPro.GroundMovement_Pull, PlatformerPro.GroundMovement_PassDownByTimeOnly, PlatformerPro.GroundMovement_PassDown, PlatformerPro.GroundMovement_LandWithDamage, PlatformerPro.GroundMovement_DigitalDoubleTapRun, PlatformerPro.GroundMovement_CrouchWithSlideAndCrawl, PlatformerPro.GroundMovement_CrouchWithSlide, PlatformerPro.GroundMovement_CrouchWithCrawl, PlatformerPro.GroundMovement_CrouchNoCrawl, PlatformerPro.GroundMovement_Crouch, and PlatformerPro.GroundMovement_BalanceOnEdge.
|
staticget |
Static movement info used by the editor.
|
get |
Gets a value indicating whether this PlatformerPro.Movement can support automatic sliding based on the characters slope.