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)]
[ValueCategory]
[Unmanaged]
public Float3 Size { get; set; }
Property Value
Float3
|
Remarks
The box size will be scaled by the actor's world scale.
Methods
AutoResize(Boolean)
Resizes the collider based on the bounds of it's parent to contain it whole (including any siblings).
Declaration
[Unmanaged]
public void AutoResize(bool globalOrientation)
Parameters
System.Boolean
globalOrientation
|