CrystalSpace

Public API Reference

CS::Physics::Bullet2::iPhysicalSector Struct Reference

The Bullet implementation of iPhysicalSector also implements this interface. More...

#include <ivaria/bullet2.h>

Inheritance diagram for CS::Physics::Bullet2::iPhysicalSector:

List of all members.

Public Member Functions

virtual void DebugDraw (iView *rview)=0
 Draw the debug informations of the dynamic system.
virtual void DumpProfile (bool resetProfile=true)=0
 Dump the profile information on the standard output.
virtual DebugMode GetDebugMode ()=0
 Get the current mode used when displaying debug informations.
virtual bool SaveWorld (const char *filename)=0
 Save the current state of the dynamic world in a file.
virtual void SetDebugMode (DebugMode mode)=0
 Set the mode to be used when displaying debug informations.
virtual void StartProfile ()=0
 Start the profiling of the simulation.
virtual void StopProfile ()=0
 Stop the profiling of the simulation.

Detailed Description

The Bullet implementation of iPhysicalSector also implements this interface.

See also:
CS::Physics::iPhysicalSector

Definition at line 169 of file bullet2.h.


Member Function Documentation

virtual void CS::Physics::Bullet2::iPhysicalSector::DebugDraw ( iView rview  )  [pure virtual]

Draw the debug informations of the dynamic system.

This has to be called at each frame, and will add 2D lines on top of the rendered scene. The objects to be displayed are defined by SetDebugMode().

virtual void CS::Physics::Bullet2::iPhysicalSector::DumpProfile ( bool  resetProfile = true  )  [pure virtual]

Dump the profile information on the standard output.

StartProfile() must have been called before.

Parameters:
resetProfile Whether or not the profile data must be reset after the dumping.
virtual DebugMode CS::Physics::Bullet2::iPhysicalSector::GetDebugMode (  )  [pure virtual]

Get the current mode used when displaying debug informations.

virtual bool CS::Physics::Bullet2::iPhysicalSector::SaveWorld ( const char *  filename  )  [pure virtual]

Save the current state of the dynamic world in a file.

Returns:
True if the operation succeeds, false otherwise.
virtual void CS::Physics::Bullet2::iPhysicalSector::SetDebugMode ( DebugMode  mode  )  [pure virtual]

Set the mode to be used when displaying debug informations.

The default value is 'CSPhysics::Bullet2::DEBUG_COLLIDERS | CS::Physics::Bullet2::DEBUG_JOINTS'.

Remarks:
Don't forget to call DebugDraw() at each frame to effectively display the debug informations.
virtual void CS::Physics::Bullet2::iPhysicalSector::StartProfile (  )  [pure virtual]

Start the profiling of the simulation.

This would add an overhead to the computations, but allows to display meaningful information on the behavior of the simulation.

virtual void CS::Physics::Bullet2::iPhysicalSector::StopProfile (  )  [pure virtual]

Stop the profiling of the simulation.

This would add an overhead to the


The documentation for this struct was generated from the following file:

Generated for Crystal Space 2.1 by doxygen 1.6.1