Rise
The Vieneo Province
Loading...
Searching...
No Matches
RigidProp::Simulation Class Reference

#include <RigidProp.h>

Collaboration diagram for RigidProp::Simulation:
[legend]

Public Member Functions

 Simulation (Hull shape, std::vector< Triangle > scene, Pose pose)
const Hull & Shape () const
const std::vector< Triangle > & Scene () const
void DiscardMotion (const char *reason="discard")
void Reset ()
void Update (double dt, const Motion &motion)

Public Attributes

Body body
Material material
FrameStats stats
unsigned sweepBudgetStops =0

Private Member Functions

void Correct (Vec normal, double amount, int triangle)
void Contacts (std::vector< Contact > &contacts, std::vector< int > &active)
void Step (double dt, const Motion &motion)

Private Attributes

Hull hull
std::vector< Triangle > triangles
Pose initial
Pose lastValidPose
double accumulator =0
Motion lastMotion {}

Static Private Attributes

static constexpr double Skin =.035

Detailed Description

Definition at line 204 of file RigidProp.h.

Constructor & Destructor Documentation

◆ Simulation()

RigidProp::Simulation::Simulation ( Hull shape,
std::vector< Triangle > scene,
Pose pose )
inline

Definition at line 314 of file RigidProp.h.

Here is the call graph for this function:

Member Function Documentation

◆ Contacts()

void RigidProp::Simulation::Contacts ( std::vector< Contact > & contacts,
std::vector< int > & active )
inlineprivate

Definition at line 218 of file RigidProp.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Correct()

void RigidProp::Simulation::Correct ( Vec normal,
double amount,
int triangle )
inlineprivate

Definition at line 211 of file RigidProp.h.

Here is the caller graph for this function:

◆ DiscardMotion()

void RigidProp::Simulation::DiscardMotion ( const char * reason = "discard")
inline

Definition at line 317 of file RigidProp.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Reset()

void RigidProp::Simulation::Reset ( )
inline

Definition at line 325 of file RigidProp.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Scene()

const std::vector< Triangle > & RigidProp::Simulation::Scene ( ) const
inline

Definition at line 316 of file RigidProp.h.

◆ Shape()

const Hull & RigidProp::Simulation::Shape ( ) const
inline

Definition at line 315 of file RigidProp.h.

◆ Step()

void RigidProp::Simulation::Step ( double dt,
const Motion & motion )
inlineprivate

Definition at line 241 of file RigidProp.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Update()

void RigidProp::Simulation::Update ( double dt,
const Motion & motion )
inline

Definition at line 332 of file RigidProp.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ accumulator

double RigidProp::Simulation::accumulator =0
private

Definition at line 208 of file RigidProp.h.

◆ body

Body RigidProp::Simulation::body

Definition at line 310 of file RigidProp.h.

◆ hull

Hull RigidProp::Simulation::hull
private

Definition at line 205 of file RigidProp.h.

◆ initial

Pose RigidProp::Simulation::initial
private

Definition at line 207 of file RigidProp.h.

◆ lastMotion

Motion RigidProp::Simulation::lastMotion {}
private

Definition at line 209 of file RigidProp.h.

◆ lastValidPose

Pose RigidProp::Simulation::lastValidPose
private

Definition at line 207 of file RigidProp.h.

◆ material

Material RigidProp::Simulation::material

Definition at line 311 of file RigidProp.h.

◆ Skin

double RigidProp::Simulation::Skin =.035
staticconstexprprivate

Definition at line 210 of file RigidProp.h.

◆ stats

FrameStats RigidProp::Simulation::stats

Definition at line 312 of file RigidProp.h.

◆ sweepBudgetStops

unsigned RigidProp::Simulation::sweepBudgetStops =0

Definition at line 313 of file RigidProp.h.

◆ triangles

std::vector<Triangle> RigidProp::Simulation::triangles
private

Definition at line 206 of file RigidProp.h.


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