Simulant  21.12-574
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
Public Member Functions | Friends | List of all members
smlt::behaviours::RigidBodySimulation Class Reference
Inheritance diagram for smlt::behaviours::RigidBodySimulation:
smlt::RefCounted< RigidBodySimulation > smlt::TwoPhaseConstructed

Public Member Functions

 RigidBodySimulation (TimeKeeper *time_keeper)
 
bool init () override
 
void clean_up () override
 
void fixed_update (float step)
 
smlt::optional< RayCastResultray_cast (const Vec3 &start, const Vec3 &direction, float max_distance=std::numeric_limits< float >::max())
 
void set_gravity (const Vec3 &gravity)
 
bool body_exists (const impl::Body *body) const
 
const ContactFiltercontact_filter () const
 
void set_contact_filter (ContactFilter *filter)
 

Friends

class impl::PrivateContactFilter
 
class Fixture
 
class impl::Body
 
class impl::DynamicBody
 
class RigidBody
 
class StaticBody
 
class KinematicBody
 

Additional Inherited Members

- Public Types inherited from smlt::RefCounted< RigidBodySimulation >
typedef std::shared_ptr< RigidBodySimulation > ptr
 
typedef std::weak_ptr< RigidBodySimulation > wptr
 
- Static Public Member Functions inherited from smlt::RefCounted< RigidBodySimulation >
static RefCounted< RigidBodySimulation >::ptr create (Args &&... args)
 
static RefCounted< RigidBodySimulation >::ptr create ()
 
- Protected Member Functions inherited from smlt::RefCounted< RigidBodySimulation >
 RefCounted (Args &&...)
 

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