createCollider

abstract fun createCollider(shape: Shape, position: Collider.Start): Collider.Own

Creates a Collider with default parameters, which is not attached to any RigidBody or PhysicsSpace.

Parameters

shape

The baked shape to use for this collider.

position

The starting position for this collider (see Collider.Start).