Class CapsuleCollider
A capsule-shaped primitive collider.
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
[ActorContextMenu("New/Physics/Colliders/Capsule Collider")]
[ActorToolbox("Physics")]
[Unmanaged]
public class CapsuleCollider : Collider, ISerializable
Remarks
Capsules are cylinders with a half-sphere at each end centered at the origin and extending along the X axis, and two hemispherical ends.
Constructors
CapsuleCollider()
Properties
Height
Gets or sets the height of the capsule, measured in the object's local space between the centers of the hemispherical ends.
Declaration
[EditorOrder(110)]
[EditorDisplay("Collider", null)]
[ValueCategory]
[Unmanaged]
public float Height { get; set; }
Property Value
System.Single
|
Remarks
The capsule height will be scaled by the actor's world scale.
Radius
Gets or sets the radius of the sphere, measured in the object's local space.
Declaration
[EditorOrder(100)]
[EditorDisplay("Collider", null)]
[ValueCategory]
[Unmanaged]
public float Radius { get; set; }
Property Value
System.Single
|
Remarks
The sphere radius will be scaled by the actor's world scale.