PhysicalZone Class Reference

#include <physicalZone.h>

Inheritance diagram for PhysicalZone:

Inheritance graph
[legend]
List of all members.

Public Member Functions

void setTransform (const MatrixF &mat)
 Sets the Object -> World transform.
 PhysicalZone ()
 ~PhysicalZone ()
F32 getVelocityMod () const
F32 getGravityMod () const
const Point3FgetForce () const
void setPolyhedron (const Polyhedron &)
bool testObject (SceneObject *)
void activate ()
void deactivate ()
bool isActive () const
 DECLARE_CONOBJECT (PhysicalZone)
U32 packUpdate (NetConnection *conn, U32 mask, BitStream *stream)
 Instructs this object to pack its state for transfer over the network.
void unpackUpdate (NetConnection *conn, BitStream *stream)
 Instructs this object to read state data previously packed with packUpdate.

Static Public Member Functions

static void initPersistFields ()
 Register dynamic fields in a subclass of ConsoleObject.

Protected Types

 InitialUpdateMask = 1 << 0
 ActiveMask = 1 << 1
enum  UpdateMasks {
  InitialUpdateMask = 1 << 0,
  ActiveMask = 1 << 1
}

Protected Member Functions

bool onAdd ()
 Called when the object is added to the sim.
void onRemove ()
 Called when the object is removed from the sim.
void buildConvex (const Box3F &box, Convex *convex)
 Builds a convex hull for this object.

Protected Attributes

F32 mVelocityMod
F32 mGravityMod
Point3F mAppliedForce
Polyhedron mPolyhedron
EarlyOutPolyList mClippedList
bool mActive
ConvexmConvexList

Private Types

typedef SceneObject Parent

Member Typedef Documentation

typedef SceneObject PhysicalZone::Parent [private]

Reimplemented from SceneObject.


Member Enumeration Documentation

enum PhysicalZone::UpdateMasks [protected]

Enumerator:
InitialUpdateMask 
ActiveMask 


Constructor & Destructor Documentation

PhysicalZone::PhysicalZone (  ) 

PhysicalZone::~PhysicalZone (  ) 


Member Function Documentation

bool PhysicalZone::onAdd (  )  [protected, virtual]

Called when the object is added to the sim.

Reimplemented from SceneObject.

void PhysicalZone::onRemove (  )  [protected, virtual]

Called when the object is removed from the sim.

Reimplemented from SceneObject.

void PhysicalZone::setTransform ( const MatrixF mat  )  [virtual]

Sets the Object -> World transform.

Parameters:
mat New transform matrix

Reimplemented from SceneObject.

void PhysicalZone::buildConvex ( const Box3F box,
Convex convex 
) [protected, virtual]

Builds a convex hull for this object.

Think of a convex hull as a low-res mesh which covers, as tightly as possible, the object mesh, and is used as a collision mesh.

Parameters:
box 
convex Convex mesh generated (out)

Reimplemented from SceneObject.

F32 PhysicalZone::getVelocityMod (  )  const [inline]

F32 PhysicalZone::getGravityMod (  )  const [inline]

const Point3F& PhysicalZone::getForce (  )  const [inline]

void PhysicalZone::setPolyhedron ( const Polyhedron  ) 

bool PhysicalZone::testObject ( SceneObject  ) 

void PhysicalZone::activate (  ) 

void PhysicalZone::deactivate (  ) 

bool PhysicalZone::isActive (  )  const [inline]

PhysicalZone::DECLARE_CONOBJECT ( PhysicalZone   ) 

static void PhysicalZone::initPersistFields (  )  [static]

Register dynamic fields in a subclass of ConsoleObject.

See also:
addField(), addFieldV(), addDeprecatedField(), addGroup(), endGroup()

Reimplemented from SceneObject.

U32 PhysicalZone::packUpdate ( NetConnection conn,
U32  mask,
BitStream stream 
) [virtual]

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

Parameters:
conn Net connection being used
mask Mask indicating fields to transmit.
stream Bitstream to pack data to
Returns:
Any bits which were not dealt with. The value is stored by the networking system. Don't set bits you weren't passed.

Reimplemented from NetObject.

void PhysicalZone::unpackUpdate ( NetConnection conn,
BitStream stream 
) [virtual]

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

Parameters:
conn Net connection being used
stream stream to read from

Reimplemented from NetObject.


Member Data Documentation