class IColliderImplementation

Low-level interface for a collider used by the Collider component.

Should be implemented by the physics plugin to provide collider functionality.

Public

Methods

~IColliderImplementation

virtual ~IColliderImplementation() = default

AddToScene

virtual void AddToScene(PhysicsScene &scene) = 0

Adds the collider to the physics scene.

RemoveFromScene

virtual void RemoveFromScene() = 0

Removes the collider from the currently assigned physics scene.

AttachShape

virtual void AttachShape(const SPtr<ColliderShape> &shape) = 0

Assigns a new child shape to the collider.

DetachShape

virtual void DetachShape(const SPtr<ColliderShape> &shape) = 0

Removes a shape that was previously attached to the collider.

SetTransform

virtual void SetTransform(const Vector3 &position, const Quaternion &rotation) = 0

Changes the position and rotation of the collider.

All child shapes will maintain relative position and rotation to the collider.