Own

Mutable owned interface for a Collider.

Properties

Link copied to clipboard

The primary, contact-generation, interaction group (see Collider).

Link copied to clipboard
abstract val density: Double

The density of the collider, in kg/m^3.

Link copied to clipboard
abstract val mass: Double

The mass of the collider, in kg.

Link copied to clipboard

The physics properties.

Link copied to clipboard
abstract val parent: RigidBodyKey?

The handle of which body this collider will follow (see Collider).

Link copied to clipboard
abstract val physicsMode: PhysicsMode

The physics mode.

Link copied to clipboard
abstract val position: DIso3

The absolute position of the collider in the physics space, i.e. not relative to its parent body.

Link copied to clipboard
abstract val relativePosition: DIso3

The position of the collider relative to its parent body. Even if the collider has no parent, this will keep the last set relative position.

Link copied to clipboard
abstract val shape: Shape

The shape that this collider takes on in the world.

Link copied to clipboard

The secondary, contact-application, interaction group (see Collider).

Functions

Link copied to clipboard
abstract fun bounds(): DAabb3

The world-space bounding box of this collider, determined by its shape and position.

Link copied to clipboard
abstract override fun collisionGroup(value: InteractionGroup): Collider.Own
Link copied to clipboard
abstract fun destroy()
Link copied to clipboard
abstract override fun handlesEvents(value: ColliderEvents): Collider.Own
Link copied to clipboard
abstract override fun mass(value: Collider.Mass): Collider.Own
Link copied to clipboard
abstract override fun material(value: PhysicsMaterial): Collider.Own
Link copied to clipboard
abstract override fun physicsMode(value: PhysicsMode): Collider.Own
Link copied to clipboard
abstract override fun position(value: DIso3): Collider.Own
Link copied to clipboard
abstract override fun relativePosition(value: DIso3): Collider.Own
Link copied to clipboard
abstract override fun shape(value: Shape): Collider.Own
Link copied to clipboard
abstract override fun solverGroup(value: InteractionGroup): Collider.Own