Optionaloptions: MotionComponentOptionsConstant angular acceleration in radians per second squared.
Angular damping rate per second, >= 0. 0 disables damping.
Angular velocity as an axis-angle rate vector in radians per second.
Linear damping rate per second, >= 0. 0 disables damping.
The node this component is attached to, or null. Written by the
ComponentRegistry alone (§6a); never assign it.
Constant linear acceleration in units per second squared.
Linear velocity in units per second.
OptionalmaxOptional angular speed limit in radians per second, >= 0.
OptionalmaxOptional linear speed limit in units per second, >= 0.
Static ReadonlytypeComponent key (plan D2) and §79 serialization name.
Procedural motion state attached to a node (§11), advanced by MotionSystem.
A component per plan D2: a class with a
static readonly typeName, one per node, attached withnode.addComponent(new MotionComponent(...))exactly as §11's example does. It holds no reference to the node —hostis assigned by the registry — and no behaviour, so a component that is never tracked simply never moves anything.The four vectors are owned by the component and are never replaced by it; write into them (
motion.linearVelocity.set(...)) or assign a new vector if you prefer — the system re-reads the fields every step either way.