CharacterMovement Class

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["GroundCharacterMovement"]-->Type click Derived0 "/platformer/api/PlatformerGameKit.Characters/GroundCharacterMovement" Derived1["AirCharacterMovement"]-->Type click Derived1 "/platformer/api/PlatformerGameKit.Characters/AirCharacterMovement"

Syntax

[PlatformerHelpUrl(typeof(CharacterMovement))]
[DefaultExecutionOrder(DefaultExecutionOrder)]
public abstract class CharacterMovement : MonoBehaviour

Remarks

Documentation: Physics

Attributes

Type Description
PlatformerHelpUrlAttribute [Assert-Conditional] A UnityEngine.HelpURLAttribute which points to Platformer Game Kit's documentation.
DefaultExecutionOrder

Fields

Name Constant Value Summary
DefaultExecutionOrder -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

Name Value Summary
Character Character

Methods

Name Value Summary
FixedUpdate() void
OnValidate() void
[Editor-Only] Ensures that all fields have valid values and finds missing components nearby.
UpdateVelocity(Vector2) Vector2