[SOLVED]RigidBody and hkWorld Cube boulders error

[SOLVED]RigidBody and hkWorld Cube boulders error

Portrait de TediCreations

When a RigidBody's position is out of the world cube I get an error.

Do I have to check for boundies every simulation step

or

is there a better approach do to this inside Havok?

Tedi

[EDIT] Solved.....

I used this code in initialization:

worldCInfo.m_broadPhaseBorderBehaviour = hkpWorldCinfo::BROADPHASE_BORDER_DO_NOTHING;

http://reallibrary.juplo.com/ Real Library SDK is a C++ toolbox that can create virtual reality worlds.
3 posts / 0 nouveau(x)
Dernière contribution
Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.
Portrait de Havok - Josh S.

Hi Tedi,

When you create the physics world you can specify what it should do by default when an object falls outside the world cube.  Check out hkpWorldCinfo::BroadPhaseBorderBehaviour.  By default it will assert, but you can have it silently remove the object, make it a fixed object, or simply ignore it.  If you want some other behavior when an object falls out of the world, like warping it back to a spawn point for example, you can override hkpBroadPhaseBorder::maxPositionExceededCallback. 

Josh S. Havok Developer Support Engineer www.havok.com
Portrait de TediCreations

Thanks Havok Josh.

http://reallibrary.juplo.com/ Real Library SDK is a C++ toolbox that can create virtual reality worlds.

Connectez-vous pour laisser un commentaire.