aether::rigidbody::contact Class Referencefinal

#include <rigidbody.hh>

Public Member Functions

 contact (physics_state &obj0, physics_state &obj1)
 
 contact (physics_state &obj0, physics_state &obj1, const Vec3 &point, const Vec3 &normal, float penetration, float restitution)
 
bool detect (const collision::sphere &sphere0, const collision::sphere &sphere1)
 
void solve (float time_step)
 

Public Attributes

physics_stateobj0
 
physics_stateobj1
 
const Vec3 point
 
const Vec3 normal
 
const float penetration
 
const float restitution
 

Constructor & Destructor Documentation

aether::rigidbody::contact::contact ( physics_state obj0,
physics_state obj1 
)
inline
aether::rigidbody::contact::contact ( physics_state obj0,
physics_state obj1,
const Vec3 point,
const Vec3 normal,
float  penetration,
float  restitution 
)
inline

Member Function Documentation

bool aether::rigidbody::contact::detect ( const collision::sphere sphere0,
const collision::sphere sphere1 
)
void aether::rigidbody::contact::solve ( float  time_step)

Member Data Documentation

const Vec3 aether::rigidbody::contact::normal
physics_state& aether::rigidbody::contact::obj0
physics_state& aether::rigidbody::contact::obj1
const float aether::rigidbody::contact::penetration
const Vec3 aether::rigidbody::contact::point
const float aether::rigidbody::contact::restitution