Class LSCircleCollider2D
Pure 2D circle collider.
public sealed class LSCircleCollider2D : LSCollider2D, IRecordable
- Inheritance
-
LSCircleCollider2D
- Implements
-
IRecordable
- Inherited Members
Constructors
LSCircleCollider2D(Fixed64)
Creates a pure 2D circle with an authored radius.
public LSCircleCollider2D(Fixed64 radius)
Parameters
radiusFixed64
LSCircleCollider2D(ColliderShapeDefinition2D)
Creates a runtime circle from an authored shape definition.
public LSCircleCollider2D(ColliderShapeDefinition2D definition)
Parameters
definitionColliderShapeDefinition2D
Properties
Radius
Gets or sets the unscaled circle radius.
public Fixed64 Radius { get; set; }
Property Value
- Fixed64
ScaledRadius
Gets the radius after owner and compound-part scaling.
public Fixed64 ScaledRadius { get; }
Property Value
- Fixed64
Shape
Gets the runtime pure 2D shape family.
public override ColliderType2D Shape { get; }
Property Value
Methods
ContainsPoint(Vector2d)
Gets whether a planar world-space point lies inside this collider.
public override bool ContainsPoint(Vector2d point)
Parameters
pointVector2d
Returns
GetClosestPoint(Vector2d)
Gets the closest representable point on this collider to a planar world-space point.
public override Vector2d GetClosestPoint(Vector2d point)
Parameters
pointVector2d
Returns
- Vector2d
GetSupportPoint(Vector2d)
Gets the farthest representable point along a planar world-space direction.
public override Vector2d GetSupportPoint(Vector2d direction)
Parameters
directionVector2d
Returns
- Vector2d
RecordShapeData(IChronicler)
Records derived authored shape data.
protected override void RecordShapeData(IChronicler chronicler)
Parameters
chroniclerIChronicler