Class BoxVolume
A base class for actors that define 3D bounding box volume.
Inherited Members
Assembly: FlaxEngine.dll
File: Engine/Level/Actors/BoxVolume.h
Syntax
public class BoxVolume : public Actor
Fields
_bounds
_size
Declaration
protected Vector3 _size
Field Value
Vector3
|
Methods
Deserialize(DeserializeStream& stream, ISerializeModifier* modifier)
Deserializes object from the input stream.
Declaration
public virtual void Deserialize(DeserializeStream& stream, ISerializeModifier* modifier) override
Parameters
DeserializeStream
stream
The input stream. |
ISerializeModifier
modifier
The deserialization modifier object. Always valid. |
Overrides
GetOrientedBox()
Gets the volume bounding box (oriented in world space).
Declaration
public OrientedBoundingBox GetOrientedBox() const
Returns
OrientedBoundingBox
|
GetSize()
Gets the size of the volume (in local space).
Declaration
public Vector3 GetSize() const
Returns
Vector3
|
GetWiresColor()
OnBoundsChanged(const BoundingBox& prevBounds)
Declaration
protected virtual void OnBoundsChanged(const BoundingBox& prevBounds)
Parameters
BoundingBox
prevBounds
|
OnDebugDraw()
Draws debug shapes for the actor and all child scripts.
Declaration
public virtual void OnDebugDraw() override
Overrides
OnDebugDrawSelected()
Draws debug shapes for the selected actor and all child scripts.
Declaration
public virtual void OnDebugDrawSelected() override
Overrides
OnTransformChanged()
Called when actor transform gets changed.
Declaration
protected virtual void OnTransformChanged() override
Overrides
Serialize(SerializeStream& stream, const void* otherObj)
Serializes object to the output stream compared to the values of the other object instance (eg. default class object). If other object is null then serialize all properties.
Declaration
public virtual void Serialize(SerializeStream& stream, const void* otherObj) override
Parameters
SerializeStream
stream
The output stream. |
void
otherObj
The instance of the object to compare with and serialize only the modified properties. If null, then serialize all properties. |
Overrides
SetSize(const Vector3& value)
Sets the size of the volume (in local space).
Declaration
public void SetSize(const Vector3& value)
Parameters
Vector3
value
|