five-on-it / packages/sim/src/proxy / applyProxyBody
Function: applyProxyBody()
applyProxyBody(
sim,eid):void
Defined in: packages/sim/src/proxy.ts:53
Gives an entity's body the type its proxy and dormant flags ask for: kinematic (it moves only when placed) when held, 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) and whenever either flag changes.
Parameters
sim
eid
number
Returns
void