PhysicsPlugin
Defined in: physics/PhysicsPlugin.ts:76
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new PhysicsPlugin(
wasmUrl,config?,factory?):PhysicsPlugin
Defined in: physics/PhysicsPlugin.ts:84
Parameters
Section titled “Parameters”wasmUrl
Section titled “wasmUrl”string
config?
Section titled “config?”PhysicsPluginConfig = {}
factory?
Section titled “factory?”Returns
Section titled “Returns”PhysicsPlugin
Properties
Section titled “Properties”name:
string='physics'
Defined in: physics/PhysicsPlugin.ts:77
Implementation of
Section titled “Implementation of”Methods
Section titled “Methods”build()
Section titled “build()”build(
app):void
Defined in: physics/PhysicsPlugin.ts:90
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”cleanup()
Section titled “cleanup()”cleanup():
void
Defined in: physics/PhysicsPlugin.ts:164
Shut the native Box2D world down on app teardown. Without this,
_physics_shutdown was dead code and the C++ physics world (bodies,
joints, contact state) leaked across an engine re-init. The bridge-guarded
module makes the call abort-safe; null after so a double cleanup is a no-op.
Returns
Section titled “Returns”void