ScenePolyhedralZone
Engine/source/scene/zones/scenePolyhedralZone.h
A simple zone space that is described by a polyhedron.
Public Types
Parent
Protected Types
IntersectorType
Protected Attributes
Fast polyhedron/AABB intersector used for testing SceneObject AABBs for overlap with the zone.
Protected Functions
Precompute polyhedron/AABB intersection data.
Update the OBB for the zone.
Public Functions
ScenePolyhedralZone(const PolyhedronType & polyhedron)
bool
getOverlappingZones(const Box3F & aabb, U32 * outZones, U32 & outNumZones)
bool
onAdd()
Called when the object is added to the sim.
setTransform(const MatrixF & mat)
Sets the Object -> World transform.
Detailed Description
A simple zone space that is described by a polyhedron.
By default, if no other polyhedron is assigned to a polyhedral zone, the polyhedron is initialized from the zone's object box.
Public Types
typedef ScenePolyhedralObject< SceneSimpleZone > Parent
Protected Types
typedef PolyhedronBoxIntersector< PolyhedronType > IntersectorType
Protected Attributes
IntersectorType mIntersector
Fast polyhedron/AABB intersector used for testing SceneObject AABBs for overlap with the zone.
Protected Functions
_updateIntersector()
Precompute polyhedron/AABB intersection data.
_updateOrientedWorldBox()
Reimplemented from: SceneSimpleZone
Public Functions
ScenePolyhedralZone()
ScenePolyhedralZone(const PolyhedronType & polyhedron)
getOverlappingZones(const Box3F & aabb, U32 * outZones, U32 & outNumZones)
Reimplemented from: SceneSimpleZone
onAdd()
Reimplemented from: ScenePolyhedralObject
setTransform(const MatrixF & mat)
Reimplemented from: SceneSimpleZone
Reimplemented by: Portal