CapsuleCollider

class in InfEngine.components.builtin

Inherits from: Collider

Description

A capsule-shaped collider primitive.

description

Properties

Name Type Description
radius float The radius of the capsule collider.
height float The height of the capsule collider.
direction int The axis direction of the capsule (0=X, 1=Y, 2=Z).

properties

Lifecycle Methods

Method Description
on_draw_gizmos_selected() → None Draw the collider wireframe when selected in the editor.

lifecycle_methods

Example

# TODO: Add example for CapsuleCollider

example

See Also

see_also