Class RigidBodyObject

Inheritance Relationships

Derived Type

Class Documentation

class SPH::RigidBodyObject

Base class for rigid body objects.

Subclassed by SPH::StaticRigidBody

Public Functions

~RigidBodyObject()
bool isDynamic() const = 0
Real const getMass() const = 0
Vector3r const &getPosition() const = 0
void setPosition(const Vector3r &x) = 0
Vector3r getWorldSpacePosition() const = 0
Vector3r const &getVelocity() const = 0
void setVelocity(const Vector3r &v) = 0
Matrix3r const &getRotation() const = 0
void setRotation(const Matrix3r &r) = 0
Matrix3r getWorldSpaceRotation() const = 0
Vector3r const &getAngularVelocity() const = 0
void setAngularVelocity(const Vector3r &v) = 0
void addForce(const Vector3r &f) = 0
void addTorque(const Vector3r &t) = 0
const std::vector<Vector3r> &getVertices() const = 0
const std::vector<Vector3r> &getVertexNormals() const = 0
const std::vector<unsigned int> &getFaces() const = 0