MoveCharacterOptions
What moveCharacter takes.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
dropThrough? |
boolean |
Drops the character through the one-way platform it stands on: it leaves the floor at once and falls this call, the walk passes every one-way platform at its feet’s height until it lands, and it counts as a jump for coyote time. With jump too, the drop wins on a one-way floor and the jump anywhere else; off a one-way floor it does nothing. A drop keeps no upward part of a platform’s velocity. |
impulse? |
Vector3Like |
Metres a second added at once: its upward part to the character’s rising speed and its sideways part to its externalVelocity, for a bounce pad, a wall jump or a ground pound. |
jump? |
boolean |
Launches the character now, to the controller’s jumpHeight, on the floor or not: when a jump is allowed is the movement’s to decide. |
overrides? |
Partial<Omit<{ floorSnapDistance: number; gravity: boolean; gravityScale: number; groundFriction: number; height: number; heldPassSeconds: number; jumpHeight: number; maxSlopeRadians: number; plane: Side | null; platformOnLeave: PlatformOnLeave; pushes: CollisionMask | null; separationSpeed: number; stepHeight: number; turnWithPlatform: boolean; }, "plane" | "pushes">> |
Controller settings for this call alone. |
rotation? |
QuaternionLike |
The character’s rotation after the move; left out, unchanged. |
velocity |
Vector3Like |
Metres a second along the ground. Its y is read only while the controller’s gravity is off, for a glide, a ladder or a swim: with gravity on, the controller owns the character’s vertical speed. |