Main Page | Namespace List | Alphabetical List | Class List | File List | Class Members | Related Pages

DART_Physics::PhysicsInit Class Reference

This behavior is placed on the 3D world to define the properties of the Havok physics world. More...

List of all members.

Public Member Functions

 getPropertyDescriptionList (, aScript)
 endSprite (, me)
 exitFrame (, me)
 beginSprite (me)
 InitPhysics ()

Private Attributes

 physics_timestep
 timestep to be used when stepping

 prevtime
 time value from previous loop, used to calculate elapsed time

 pSubSteps
 substeps during each step

 pWorldScale
 scale to apply to the world, set to 0.01 to put in cm

 pTolerance
 space between objects that is considered a collision

 init
 TRUE when physics has been initialized.

 pDeactivateShort
 frequency at which physics objects will be deactived in the short term

 pDeactivateLong
 frequency at which physics objects will be deactived in the long term


Detailed Description

This behavior is placed on the 3D world to define the properties of the Havok physics world.

You must have a Havok physics component placed on the score to use this behavior. Then the user defines the world scale which is in meters. The standard scale is 1.0, but for correctness in DART it should be set to cm (0.01). However, if errors occur in the simulation, try changing the scale to 1.0. The tolerance is the depth of the "shell" around the objects that will be used to determine collisions , again if errors occur try making this value bigger. Very small values for tolerance can result in strange behavior in the simulation such as objects passing through each other. The substeps define how many intermediate steps will be calculated for each pass of the physics simulation that is shown on the screen. The deactivate parameters control when objects are "removed" from the simulation. They are a long and short frequency which determines when objects are checked to see if they should be removed. If you are seeing jitter on objects that should be sitting still, increase these frequency values. For more details about the Havok physic system please read the havok physics primer http://www.havok.com/xtra/downloads/docs/HavokPrimer.zip

Properties:

Copyright 2004, Georgia Tech Research Corporation, Atlanta, Georgia 30332-0415 All Rights Reserved (See LICENSE cast member for full license information)


Member Function Documentation

DART_Physics::PhysicsInit::beginSprite me   ) 
 

DART_Physics::PhysicsInit::endSprite me   ) 
 

DART_Physics::PhysicsInit::exitFrame me   ) 
 

DART_Physics::PhysicsInit::getPropertyDescriptionList aScript   ) 
 

DART_Physics::PhysicsInit::InitPhysics  ) 
 


Member Data Documentation

DART_Physics::PhysicsInit::init [private]
 

TRUE when physics has been initialized.

DART_Physics::PhysicsInit::pDeactivateLong [private]
 

frequency at which physics objects will be deactived in the long term

DART_Physics::PhysicsInit::pDeactivateShort [private]
 

frequency at which physics objects will be deactived in the short term

DART_Physics::PhysicsInit::physics_timestep [private]
 

timestep to be used when stepping

DART_Physics::PhysicsInit::prevtime [private]
 

time value from previous loop, used to calculate elapsed time

DART_Physics::PhysicsInit::pSubSteps [private]
 

substeps during each step

DART_Physics::PhysicsInit::pTolerance [private]
 

space between objects that is considered a collision

DART_Physics::PhysicsInit::pWorldScale [private]
 

scale to apply to the world, set to 0.01 to put in cm


Generated on Fri Oct 8 16:38:01 2004 for DART-Lingo by doxygen 1.3.7