RigsofRods
Soft-body Physics Simulation
Public Types | Public Member Functions | Data Fields | Private Member Functions | Private Attributes
RoR::Buoyance Class Reference

#include <Buoyance.h>

+ Collaboration diagram for RoR::Buoyance:

Public Types

enum  { BUOY_NORMAL, BUOY_DRAGONLY, BUOY_DRAGLESS }
 

Public Member Functions

 Buoyance (DustPool *splash, DustPool *ripple)
 
 ~Buoyance ()
 
void computeNodeForce (node_t *a, node_t *b, node_t *c, bool doUpdate, int type)
 

Data Fields

bool sink
 

Private Member Functions

float computeVolume (Ogre::Vector3 o, Ogre::Vector3 a, Ogre::Vector3 b, Ogre::Vector3 c)
 
Ogre::Vector3 computePressureForceSub (Ogre::Vector3 a, Ogre::Vector3 b, Ogre::Vector3 c, Ogre::Vector3 vel, int type)
 
Ogre::Vector3 computePressureForce (Ogre::Vector3 a, Ogre::Vector3 b, Ogre::Vector3 c, Ogre::Vector3 vel, int type)
 

Private Attributes

DustPoolsplashp
 
DustPoolripplep
 
bool update
 

Detailed Description

Definition at line 30 of file Buoyance.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
BUOY_NORMAL 
BUOY_DRAGONLY 
BUOY_DRAGLESS 

Definition at line 39 of file Buoyance.h.

Constructor & Destructor Documentation

◆ Buoyance()

Buoyance::Buoyance ( DustPool splash,
DustPool ripple 
)

Definition at line 35 of file Buoyance.cpp.

◆ ~Buoyance()

Buoyance::~Buoyance ( )

Definition at line 43 of file Buoyance.cpp.

Member Function Documentation

◆ computeNodeForce()

void Buoyance::computeNodeForce ( node_t a,
node_t b,
node_t c,
bool  doUpdate,
int  type 
)

Definition at line 180 of file Buoyance.cpp.

+ Here is the call graph for this function:

◆ computePressureForce()

Vector3 Buoyance::computePressureForce ( Ogre::Vector3  a,
Ogre::Vector3  b,
Ogre::Vector3  c,
Ogre::Vector3  vel,
int  type 
)
private

Definition at line 126 of file Buoyance.cpp.

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

◆ computePressureForceSub()

Vector3 Buoyance::computePressureForceSub ( Ogre::Vector3  a,
Ogre::Vector3  b,
Ogre::Vector3  c,
Ogre::Vector3  vel,
int  type 
)
private

Definition at line 54 of file Buoyance.cpp.

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

◆ computeVolume()

float Buoyance::computeVolume ( Ogre::Vector3  o,
Ogre::Vector3  a,
Ogre::Vector3  b,
Ogre::Vector3  c 
)
inlineprivate

Definition at line 48 of file Buoyance.cpp.

+ Here is the caller graph for this function:

Field Documentation

◆ ripplep

DustPool * RoR::Buoyance::ripplep
private

Definition at line 54 of file Buoyance.h.

◆ sink

bool RoR::Buoyance::sink

Definition at line 41 of file Buoyance.h.

◆ splashp

DustPool* RoR::Buoyance::splashp
private

Definition at line 54 of file Buoyance.h.

◆ update

bool RoR::Buoyance::update
private

Definition at line 55 of file Buoyance.h.


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