PhysicalZone

Engine/source/T3D/physicalZone.h

More...

Private Types

enum
UpdateMasks {
  ActiveMask = Parent::NextFreeMask << 0
  SettingsMask = Parent::NextFreeMask << 1
  FadeMask = Parent::NextFreeMask << 2
  PolyhedronMask = Parent::NextFreeMask << 3
  MoveMask = Parent::NextFreeMask << 4
  ExclusionMask = Parent::NextFreeMask << 5
  NextFreeMask = Parent::NextFreeMask << 6
}
Parent 

Public Types

enum
_Anonymous_ {  FORCE_TYPE_BITS = 2
}
enum
ForceType {
  VECTOR 
  SPHERICAL 
  CYLINDRICAL 
}

Protected Static Attributes

Public Friends

Protected Functions

buildConvex(const Box3F & box, Convex * convex)

Builds a convex hull for this object.

Public Functions

Called after any property of the object is changed in the world editor.

bool
bool

Called when the object is added to the sim.

Called when the object is removed from the sim.

onStaticModified(const char * slotName, const char * newValue)

Specifically, these are called by setDataField when a static or dynamic field is modified, see the console details.

packUpdate(NetConnection * conn, U32 mask, BitStream * stream)

Instructs this object to pack its state for transfer over the network.

Called when the SceneManager is ready for the registration of render instances.

Sets the Object -> World transform.

bool

Instructs this object to read state data previously packed with packUpdate.

Public Static Functions

Detailed Description

Private Types

UpdateMasks

Enumerator

ActiveMask = Parent::NextFreeMask << 0
SettingsMask = Parent::NextFreeMask << 1
FadeMask = Parent::NextFreeMask << 2
PolyhedronMask = Parent::NextFreeMask << 3
MoveMask = Parent::NextFreeMask << 4
ExclusionMask = Parent::NextFreeMask << 5
NextFreeMask = Parent::NextFreeMask << 6
typedef SceneObject Parent 

Public Types

@194

Enumerator

FORCE_TYPE_BITS = 2
ForceType

Enumerator

VECTOR
SPHERICAL
CYLINDRICAL

Protected Static Attributes

bool smRenderPZones 

Protected Attributes

Vector< SceneObject * > excluded_objects 
F32 fade_amt 
F32 force_mag 
S32 force_type 
bool mActive 
Point3F mAppliedForce 
EarlyOutPolyList mClippedList 
Convex * mConvexList 
F32 mGravityMod 
Polyhedron mPolyhedron 
F32 mVelocityMod 
bool orient_force 

Public Friends

Protected Functions

buildConvex(const Box3F & box, Convex * convex)

Reimplemented from: SceneObject

setFadeAmount(F32 amt)

Public Functions

PhysicalZone()

~PhysicalZone()

activate()

deactivate()

DECLARE_CONOBJECT(PhysicalZone )

getForce(const Point3F * center)

getGravityMod()

getVelocityMod()

inspectPostApply()

Reimplemented from: SceneObject

isActive()

isExcludedObject(SceneObject * )

onAdd()

Reimplemented from: SceneObject

onRemove()

Reimplemented from: SceneObject

onStaticModified(const char * slotName, const char * newValue)

Reimplemented from: SimObject

packUpdate(NetConnection * conn, U32 mask, BitStream * stream)

Reimplemented from: SceneObject

prepRenderImage(SceneRenderState * state)

Reimplemented from: SceneObject

registerExcludedObject(SceneObject * )

renderObject(ObjectRenderInst * ri, SceneRenderState * state, BaseMatInstance * overrideMat)

setPolyhedron(const Polyhedron & )

setTransform(const MatrixF & mat)

Reimplemented from: SceneObject

testBox(const Box3F & box)

testObject(SceneObject * )

unpackUpdate(NetConnection * conn, BitStream * stream)

Reimplemented from: SceneObject

unregisterExcludedObject(SceneObject * )

Public Static Functions

consoleInit()

initPersistFields()