KinematicBodyOptions
A body moved by its pose, pushing what it meets.
Extends
Section titled “Extends”BodyOptionsBase
Properties
Section titled “Properties”| Property | Type | Default value | Description |
|---|---|---|---|
bodyType |
"kinematic" | Kinematic |
undefined |
- |
collisionLayer? |
CollisionLayerHandle |
CoreLayers.default |
The layer it stands in, a handle a plugin declared. |
collisionMask? |
CollisionMask |
every layer |
The layers it meets: a pair touches only when each one’s mask holds the other’s layer. |
display? |
"nearest-player" | DisplaySettings | NearestPlayer |
at the page's own tick |
How a page draws its flight: Display.NearestPlayer, or that mode with its settings. Only with a motion. |
ignore? |
readonly Entity[] |
undefined |
Entities it never touches, such as a rider’s own dragon, without spending a layer. |
motion? |
FlightMotion |
undefined |
What drives it by the tick, in place of setNextPose: a flight({...}), whose pose every world computes from its last launch. |
pushes? |
readonly CollisionLayerHandle[] |
every layer of its mask |
The layers of the dynamic bodies it pushes: a kart that leaves the ball out still touches it and passes through, so the game’s own system decides the touch. |
reportContacts? |
boolean |
false |
Whether it raises CollisionEnteredEvent and CollisionExitedEvent as it starts and stops touching another entity, as Rapier’s active events and Godot’s contact_monitor are asked for, so a pile of crates nobody watches costs nothing. A trigger reports always. |