Skip to content

@relu-interactives/spatial-ecs


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

Function: setPhysicsLiveRef() ​

ts
function setPhysicsLiveRef(
   component, 
   key, 
   value): void;

Defined in: components/Physics.ts:370

Parameters ​

ParameterType
componentPhysicsComponent
key"collider" | "rigidBody" | "pendingVelocity"
valueRigidBody | Collider | PendingBodyVelocity | null

Returns ​

void