The concrete body handle attached to renderable.body under
PlanckAdapter. Combines the raw planck.Body (with all
native methods — getLinearVelocity, getAngle, getMass,
setSleepingAllowed, …) with the portable melonJS helper methods
(setVelocity, applyImpulse, setStatic, etc.) spliced on at
addBody time.
Type it explicitly when reaching for planck-native methods:
(this.bodyasPlanckAdapter.Body).setBullet(true);
Keeps user code free of a direct planck import — the planck
dependency stays behind the adapter boundary.
The concrete body handle attached to
renderable.bodyunder PlanckAdapter. Combines the rawplanck.Body(with all native methods —getLinearVelocity,getAngle,getMass,setSleepingAllowed, …) with the portable melonJS helper methods (setVelocity,applyImpulse,setStatic, etc.) spliced on ataddBodytime.Type it explicitly when reaching for planck-native methods:
Keeps user code free of a direct
planckimport — the planck dependency stays behind the adapter boundary.