Skip to content
ASArcaneMP Scripting APIScripting reference
Data shapeServer APIGenerated

PhysicsCommandOptions

Defined in: shared.d.ts:27

Options for the physics commands (launch, applyForce, setLinearVelocity, …).

optional addToCurrent?: boolean

Defined in: shared.d.ts:35

setLinearVelocity/setAngularVelocity: add to the current value instead of replacing it.


optional at?: Vector3

Defined in: shared.d.ts:31

Apply the force/impulse at this point instead of the centre of mass.


optional overrideXY?: boolean

Defined in: shared.d.ts:37

launch: replace the horizontal / vertical velocity instead of adding to it.


optional overrideZ?: boolean

Defined in: shared.d.ts:38


optional space?: "world" | "local"

Defined in: shared.d.ts:29

“local” rotates the vector (and at) by the body’s rotation. Default “world”.


optional velocityChange?: boolean

Defined in: shared.d.ts:33

Treat the vector as a velocity/acceleration change, ignoring mass.