PhysicsCommandOptions
Defined in: shared.d.ts:27
Options for the physics commands (launch, applyForce, setLinearVelocity, …).
Properties
Section titled “Properties”addToCurrent?
Section titled “addToCurrent?”
optionaladdToCurrent?:boolean
Defined in: shared.d.ts:35
setLinearVelocity/setAngularVelocity: add to the current value instead of replacing it.
optionalat?:Vector3
Defined in: shared.d.ts:31
Apply the force/impulse at this point instead of the centre of mass.
overrideXY?
Section titled “overrideXY?”
optionaloverrideXY?:boolean
Defined in: shared.d.ts:37
launch: replace the horizontal / vertical velocity instead of adding to it.
overrideZ?
Section titled “overrideZ?”
optionaloverrideZ?:boolean
Defined in: shared.d.ts:38
space?
Section titled “space?”
optionalspace?:"world"|"local"
Defined in: shared.d.ts:29
“local” rotates the vector (and at) by the body’s rotation. Default “world”.
velocityChange?
Section titled “velocityChange?”
optionalvelocityChange?:boolean
Defined in: shared.d.ts:33
Treat the vector as a velocity/acceleration change, ignoring mass.