Flock::Collision::Collider3D
A 3D collision shape attached to an entity, alongside a Flock::Transform3D
(world position) and a RigidBody3D (which owns the orientation used by the
physics). shape selects how half/radius are read:
Sphere -> radius
Box -> half = half-extents (x, y, z)
Capsule -> radius + half-height in half.y (segment along local Y)
Constants
ALL_LAYERS = 4294967295_u32
Constructors
box(hx : Number, hy : Number, hz : Number, layer : UInt32 = ALL_LAYERS, mask : UInt32 = ALL_LAYERS, sensor : Bool = false) : Collider3D
Sourcecapsule(radius : Number, half_height : Number, layer : UInt32 = ALL_LAYERS, mask : UInt32 = ALL_LAYERS, sensor : Bool = false) : Collider3D
SourceClass methods
component_id
Instance methods
half
Sourcehalf=(half : Flock::Vec3)
Sourcelayer
Sourcemask
Sourceradius
Sourcesensor
Sourceshape
Sourceshape=(shape : Shape3D)
Source