Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / components / RigidbodyType

Type Alias: RigidbodyType

ts
type RigidbodyType = "dynamic" | "fixed" | "kinematicPosition" | "kinematicVelocity";

Defined in: components/Physics.ts:17

Rigidbody body type:

  • dynamic: simulated by physics; affected by forces and gravity.
  • fixed: immovable static body.
  • kinematicPosition: moved by setting next position; ignores forces.
  • kinematicVelocity: moved by setting velocity; ignores forces.