Class BoxCollider
A box-shaped primitive collider.
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
[ActorContextMenu("New/Physics/Colliders/Box Collider")]
[ActorToolbox("Physics")]
[Unmanaged]
public class BoxCollider : Collider, ISerializable
Constructors
BoxCollider()
Properties
OrientedBox
Gets the volume bounding box (oriented).
Declaration
[Unmanaged]
public OrientedBoundingBox OrientedBox { get; }
Property Value
OrientedBoundingBox
|
Size
Gets or sets the size of the box, measured in the object's local space.
Declaration
[EditorOrder(100)]
[EditorDisplay("Collider", null)]
[Unmanaged]
public Float3 Size { get; set; }
Property Value
Float3
|
Remarks
The box size will be scaled by the actor's world scale.