|
2D Platform Controller
v1.7.0
Autogenerated code documentation for the 2D Platform Controller.
|
Platform that will fall if you stand on it for more than the decay time. The timer resets each time to you leave the paltform so if you keep jumping you can stay on the platform. More...
Inherits Platform.
Public Member Functions | |
| override void | DoAction (RaycastCollider collider, RaycastCharacterController character) |
| This is called when a platform is hit. Override to implement platform behaviour. More... | |
Public Member Functions inherited from Platform | |
| virtual Transform | ParentOnStand (RaycastCharacterController character) |
| Does this platform want to have this platform become the characters parent. Used for moving platforms. More... | |
| virtual CharacterState | GetAnimationState (RaycastCharacterController character) |
| Gets the animation for the character. Only called if you have set overrideAnimation to true. More... | |
Public Attributes | |
| float | decayTime = 1.0f |
Additional Inherited Members | |
Protected Member Functions inherited from Platform | |
| virtual void | DoStart () |
| Override and add custom initialisation here. More... | |
| virtual void | Move () |
| Override with custom move code. More... | |
| virtual void | DoUpdate () |
| Override with custom update code here. More... | |
Properties inherited from Platform | |
| Vector3 | velocity [get, set] |
| Transform | myTransform [get, set] |
| virtual bool | overrideX [get] |
| If you override and return true for this, your platform will stop the character moving in the x direction. Instead you will need to the move the character from your platform code. See the ropes classes as an example. More... | |
| virtual bool | overrideY [get] |
| If you override and return true for this, your platform will stop the character moving in the y direction. Instead you will need to the move the character from your platform code. See the ropes classes as an example. More... | |
| virtual bool | overrideAnimation [get] |
| If you override and return true for this, your platform will stop the character moving in the x direction. instead you will need to the move character. See the ropes classes as an example. More... | |
Platform that will fall if you stand on it for more than the decay time. The timer resets each time to you leave the paltform so if you keep jumping you can stay on the platform.
|
virtual |
This is called when a platform is hit. Override to implement platform behaviour.
| collider | The collider that did the hitting. |
| character | The character that did the hitting. |
Reimplemented from Platform.