five-on-it / packages/sim/src/proxy / applyProxyBody
Function: applyProxyBody()
applyProxyBody(
sim,eid):void
Defined in: packages/sim/src/proxy.ts:35
Gives an entity's body the type its proxy flag asks for: kinematic (it moves only when placed) for a proxy, dynamic otherwise; a car's or a trailer's looks ahead for what it will hit (soft CCD) only when simulated. Called whenever a body is built (a vehicle's class change rebuilds its chassis).
Parameters
sim
eid
number
Returns
void