Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

setLinearVelocity

setLinearVelocity<Target>(authority, entity, velocity): BodyRefusal | null

Sets a dynamic body’s velocity, in metres a second, at once. Wakes a sleeping body. Returns null, or in a deployed world the reason it refused.

Type Parameter
Target extends Entity
Parameter Type
authority EntityAuthority
entity BodyTarget<Target, Dynamic>
velocity Vector3Like

BodyRefusal | null

setLinearVelocity(step, ball, new Vector3(0, 0, 0)); // stopped dead