Summary
Base class for moving a
PlatformerGameKit.Characters.CharacterMovement.Character
.- Assembly
- PlatformerGameKit
.dll - Namespace
- PlatformerGameKit
.Characters - Base Types
-
- MonoBehaviour
- Derived Types
graph BT
Type-->Base0["MonoBehaviour"]
Type["CharacterMovement"]
class Type type-node
Derived0["AirCharacterMovement"]-->Type
click Derived0 "/platformer/api/PlatformerGameKit.Characters/AirCharacterMovement"
Derived1["GroundCharacterMovement"]-->Type
click Derived1 "/platformer/api/PlatformerGameKit.Characters/GroundCharacterMovement"
Syntax
[HelpURL(Character.APIDocumentation + nameof(CharacterMovement))]
[DefaultExecutionOrder(DefaultExecutionOrder)]
public abstract class CharacterMovement : MonoBehaviour
Remarks
Documentation: Physics
Attributes
Type | Description |
---|---|
HelpURLAttribute | |
Default |
Fields
Name | Constant Value | Summary |
---|---|---|
Default |
-9500 |
Run after brains to use their input but before
PlatformerGameKit.Characters.CharacterBody2D to set the
PlatformerGameKit.Characters.CharacterBody2D.Velocity before it gets used.
static
|
MinimumSpeed | 0.01 |
Any speed smaller than this is treated as zero.
static
|
Properties
Methods
Name | Value | Summary |
---|---|---|
FixedUpdate |
void | |
OnValidate |
void |
[Editor-Only] Ensures that all fields have valid values and finds missing components nearby.
|
UpdateVelocity |
Vector2 |