Class SphereCollider
A sphere-shaped primitive collider.
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
[ActorContextMenu("New/Physics/Colliders/Sphere Collider")]
[ActorToolbox("Physics")]
[Unmanaged]
public class SphereCollider : Collider, ISerializable
Constructors
SphereCollider()
Properties
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.