Table of Contents

Class LSConeCollider

Namespace
Gravitas.Colliders
Assembly
Gravitas.dll

Represents a finite circular cone whose local Y axis runs from base plane to apex and whose local origin is the cone's bounding center.

public sealed class LSConeCollider : LSCollider, IRecordable
Inheritance
LSConeCollider
Implements
IRecordable
Inherited Members

Constructors

LSConeCollider()

Creates a cone collider with default dimensions.

public LSConeCollider()

LSConeCollider(ColliderShapeDefinition)

Creates a runtime cone from an authored shape definition.

public LSConeCollider(ColliderShapeDefinition definition)

Parameters

definition ColliderShapeDefinition

Properties

Height

Gets the full physical distance from the cone's base plane to its apex.

public Fixed64 Height { get; }

Property Value

Fixed64

Priority

Gets the deterministic narrow-phase ordering priority.

public override int Priority { get; }

Property Value

int

ScaledRadius

Gets the bounding circle radius. For boxes, this is half of the diagonal length of the cube

public override Fixed64 ScaledRadius { get; }

Property Value

Fixed64

The radius.

Shape

Gets the runtime 3D shape family.

public override ColliderType Shape { get; }

Property Value

ColliderType

Volume

Gets the solid cone volume used for mass weighting and diagnostics.

public Fixed64 Volume { get; }

Property Value

Fixed64

WorldAxis

Gets the derived normalized world-space base-to-apex axis. Exact geometry remains authoritative in the collider's rigid frame.

public Vector3d WorldAxis { get; }

Property Value

Vector3d

Methods

ClosestPointOnSurface(Vector3d)

Gets the point on this collider's surface nearest to a world-space point.

public override Vector3d ClosestPointOnSurface(Vector3d other)

Parameters

other Vector3d

Returns

Vector3d

ColliderOverlapsRay(RaycastSegmentWorker, ref SwiftList<Vector3d>)

Checks if this object overlaps the line formed by p1 and p2

public override bool ColliderOverlapsRay(RaycastSegmentWorker worker, ref SwiftList<Vector3d> outputIntersectionPoints)

Parameters

worker RaycastSegmentWorker

The prepared ray-axis worker for the owning query service.

outputIntersectionPoints SwiftList<Vector3d>

Returns

bool

GetFrontalArea(Vector3d)

Gets the frontal-area estimate for a world-space direction; the base implementation returns Area.

public override Fixed64 GetFrontalArea(Vector3d direction)

Parameters

direction Vector3d

Returns

Fixed64

GetNormalAtPoint(Vector3d)

The direction pointing outward from the surface of the collider at the point

public override Vector3d GetNormalAtPoint(Vector3d point)

Parameters

point Vector3d

Returns

Vector3d

NormalizeSize(Vector3d)

Normalizes an authored size for the derived shape.

protected override Vector3d NormalizeSize(Vector3d value)

Parameters

value Vector3d

Returns

Vector3d

OnRadiusChanged()

Updates derived authored dimensions after Radius changes.

protected override void OnRadiusChanged()