GroundCharacterMovement Class

Summary

Moves a ground-based PlatformerGameKit.Characters.Character.
Assembly
PlatformerGameKit.dll
Namespace
PlatformerGameKit.Characters
Base Types
graph BT Type-->Base0["CharacterMovement"] click Base0 "/platformer/api/PlatformerGameKit.Characters/CharacterMovement" Base0-->Base1["MonoBehaviour"] Type["GroundCharacterMovement"] class Type type-node

Syntax

[AddComponentMenu(Character.MenuPrefix + "Ground Character Movement")]
[HelpURL(Character.APIDocumentation + nameof(GroundCharacterMovement))]
public sealed class GroundCharacterMovement : CharacterMovement

Remarks

Documentation: Physics - Ground Character Movement

Attributes

Type Description
AddComponentMenu
HelpURLAttribute

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.
Inherited from CharacterMovement
static
MinimumSpeed 0.01
Any speed smaller than this is treated as zero.
Inherited from CharacterMovement
static

Properties

Name Value Summary
Character Character
Inherited from CharacterMovement

Methods

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