Privacy
An open-source, flexible 3D physical simulation framework
mars::interfaces::PhysicsInterface Class Referenceabstract

#include <PhysicsInterface.h>

Public Member Functions

virtual ~PhysicsInterface ()
 
virtual void initTheWorld (void)=0
 
virtual void freeTheWorld (void)=0
 
virtual void stepTheWorld (void)=0
 
virtual bool existsWorld (void) const =0
 
virtual const utils::Vector getCenterOfMass (const std::vector< NodeInterface *> &nodes) const =0
 
virtual int checkCollisions (void)=0
 
virtual sReal getVectorCollision (const utils::Vector &pos, const utils::Vector &ray) const =0
 

Public Attributes

sReal ground_friction
 
sReal ground_cfm
 
sReal ground_erp
 
sReal step_size
 Step size in seconds. More...
 
utils::Vector world_gravity
 
bool fast_step
 
bool draw_contact_points
 
sReal world_cfm
 
sReal world_erp
 

Detailed Description

Definition at line 52 of file PhysicsInterface.h.

Constructor & Destructor Documentation

◆ ~PhysicsInterface()

virtual mars::interfaces::PhysicsInterface::~PhysicsInterface ( )
inlinevirtual

Definition at line 62 of file PhysicsInterface.h.

Member Function Documentation

◆ checkCollisions()

virtual int mars::interfaces::PhysicsInterface::checkCollisions ( void  )
pure virtual

Implemented in mars::sim::WorldPhysics.

◆ existsWorld()

virtual bool mars::interfaces::PhysicsInterface::existsWorld ( void  ) const
pure virtual

Implemented in mars::sim::WorldPhysics.

◆ freeTheWorld()

virtual void mars::interfaces::PhysicsInterface::freeTheWorld ( void  )
pure virtual

Implemented in mars::sim::WorldPhysics.

◆ getCenterOfMass()

virtual const utils::Vector mars::interfaces::PhysicsInterface::getCenterOfMass ( const std::vector< NodeInterface *> &  nodes) const
pure virtual

Implemented in mars::sim::WorldPhysics.

◆ getVectorCollision()

virtual sReal mars::interfaces::PhysicsInterface::getVectorCollision ( const utils::Vector pos,
const utils::Vector ray 
) const
pure virtual

Implemented in mars::sim::WorldPhysics.

◆ initTheWorld()

virtual void mars::interfaces::PhysicsInterface::initTheWorld ( void  )
pure virtual

Implemented in mars::sim::WorldPhysics.

◆ stepTheWorld()

virtual void mars::interfaces::PhysicsInterface::stepTheWorld ( void  )
pure virtual

Implemented in mars::sim::WorldPhysics.

Member Data Documentation

◆ draw_contact_points

bool mars::interfaces::PhysicsInterface::draw_contact_points

Definition at line 59 of file PhysicsInterface.h.

◆ fast_step

bool mars::interfaces::PhysicsInterface::fast_step

Definition at line 58 of file PhysicsInterface.h.

◆ ground_cfm

sReal mars::interfaces::PhysicsInterface::ground_cfm

Definition at line 55 of file PhysicsInterface.h.

◆ ground_erp

sReal mars::interfaces::PhysicsInterface::ground_erp

Definition at line 55 of file PhysicsInterface.h.

◆ ground_friction

sReal mars::interfaces::PhysicsInterface::ground_friction

Definition at line 55 of file PhysicsInterface.h.

◆ step_size

sReal mars::interfaces::PhysicsInterface::step_size

Step size in seconds.

Definition at line 56 of file PhysicsInterface.h.

◆ world_cfm

sReal mars::interfaces::PhysicsInterface::world_cfm

Definition at line 60 of file PhysicsInterface.h.

◆ world_erp

sReal mars::interfaces::PhysicsInterface::world_erp

Definition at line 60 of file PhysicsInterface.h.

◆ world_gravity

utils::Vector mars::interfaces::PhysicsInterface::world_gravity

Definition at line 57 of file PhysicsInterface.h.


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