#include <S2_api.h>
Inheritance diagram for RigidAPI:
Public Member Functions | |
Rigid Body Initialization and Modification Methods. | |
void | SetMass (Real mass) |
void | SetInertiaTensor (const M3D &Ib) |
3x3 symmetric inertia tensor | |
void | SetInertiaTensor (const V3D &Ib) |
Diagonal inertia tensor. | |
void | SetPos (const P3D &pos) |
void | SetOrientation (const Quat &ori) |
void | SetVel (const V3D &vel) |
void | SetAcc (const V3D &acc) |
void | SetVelRot (const V3D &omega) |
void | SetAccRot (const V3D &gamma) |
void | ApplyForce (const V3D &f, const P3D &pos_local=P3D(0, 0, 0)) |
void | ApplyImpulse (const V3D &j, const P3D &pos_local=P3D(0, 0, 0)) |
Private Member Functions | |
RigidAPI (S2::Object *p_obj) | |
~RigidAPI () | |
Friends | |
class | UniverseAPI |
Allows UniverseAPI to create/destroy instances. |
App-level Rigid Body object interface.
|
|
|
|
|
|
|
|
|
|
|
|
|
Diagonal inertia tensor.
|
|
3x3 symmetric inertia tensor
|
|
|
|
|
|
|
|
|
|
|
|
Allows UniverseAPI to create/destroy instances.
Reimplemented from ObjectAPI. |