RigidBody

value class RigidBody : JointEnd(source)

Identifies one rigid body of a PhysicsWorld, as returned by PhysicsWorld.rigidBody. Pass it to RigidBodies, such as RigidBodies.xOf and RigidBodies.setVelocity, and to Joints.

A body's slot is reused once it is removed, so a handle kept after RigidBodies.remove may later refer to a new body; RigidBodies.isAlive tells whether it still refers to one.

toString gives the slot, for example RigidBody(3).

Functions

Link copied to clipboard
open override fun toString(): String