MoveCharacterResult
What one moveCharacter call did: read-only scratch the character owns,
overwritten by its next call, so read what you need before it. What
carries to the next tick is in CharacterTrait and VelocityTrait.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
displacement |
Vector3 |
Metres it moved this tick. |
floorNormal |
Vector3 |
- |
hits |
MoverHit[] |
What the move met, at most six. |
isGrounded |
boolean |
Whether the move ended on a floor within its steepest slope. |
isHeadBlocked |
boolean |
Whether a lowered height could not stand back up yet. |
isOnCeiling |
boolean |
- |
isOnOneWay |
boolean |
Whether that floor is a one-way collider’s. |
isOnWall |
boolean |
- |
realVelocity |
Vector3 |
The displacement over the tick, as Godot’s get_real_velocity. |
standingOn |
Entity | null |
The entity under the character: a lift, a conveyor, another character; null over a terrain or with no floor. |
wallNormal |
Vector3 |
- |
wasLanded |
boolean |
True on the move that touched down. |