Klamp't  0.9.0
Public Member Functions | Public Attributes | List of all members
Klampt::WorldSimulationHook Class Reference

Any function that should be run per sub-step of the simulation needs to be a WorldSimulationHook subclass and added to the WorldSimulation.hooks member. More...

#include <WorldSimulation.h>

Inheritance diagram for Klampt::WorldSimulationHook:
Klampt::ForceHook Klampt::JointForceHook Klampt::JointSpringHook Klampt::LocalForceHook Klampt::SpringHook Klampt::WrenchHook

Public Member Functions

virtual void Step (Real dt)
 
virtual bool ReadState (File &f)
 
virtual bool WriteState (File &f) const
 

Public Attributes

bool autokill
 

Detailed Description

Any function that should be run per sub-step of the simulation needs to be a WorldSimulationHook subclass and added to the WorldSimulation.hooks member.

If the flag autokill = true, the hook is removed at the end of the Advance() call.

See also
ForceHook
LocalForceHook
WrenchHook
SpringHook

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