RigsofRods
Soft-body Physics Simulation
|
#include <AirBrake.h>
Data Structures | |
struct | CoVertice_t |
Public Member Functions | |
Airbrake (ActorPtr actor, const char *basename, int num, node_t *ndref, node_t *ndx, node_t *ndy, node_t *nda, Ogre::Vector3 pos, float width, float length, float maxang, std::string const &texname, float tx1, float tx2, float tx3, float tx4, float lift_coef) | |
~Airbrake () | |
void | updatePosition (float amount) |
void | applyForce () |
float | getRatio () const |
float | getMaxAngle () const |
Private Attributes | |
Ogre::MeshPtr | msh |
Ogre::SceneNode * | snode |
node_t * | noderef |
node_t * | nodex |
node_t * | nodey |
node_t * | nodea |
Ogre::Vector3 | offset |
gfx attribute More... | |
float | ratio |
Current state. More... | |
float | maxangle |
attribute from truckfile More... | |
float | area |
Attribute set at spawn. More... | |
Ogre::Entity * | ec |
Friends | |
class | RoR::ActorSpawner |
Definition at line 35 of file AirBrake.h.
Airbrake::Airbrake | ( | ActorPtr | actor, |
const char * | basename, | ||
int | num, | ||
node_t * | ndref, | ||
node_t * | ndx, | ||
node_t * | ndy, | ||
node_t * | nda, | ||
Ogre::Vector3 | pos, | ||
float | width, | ||
float | length, | ||
float | maxang, | ||
std::string const & | texname, | ||
float | tx1, | ||
float | tx2, | ||
float | tx3, | ||
float | tx4, | ||
float | lift_coef | ||
) |
Create the mesh via the MeshManager
Create submesh
Define the vertices
Define triangles The values in this table refer to vertices in the above table
Create vertex data structure for vertices shared between submeshes
Create declaration (memory format) of vertex data
Allocate vertex buffer of the requested number of vertices (vertexCount) and bytes per vertex (offset)
Upload the vertex data to the card
Set vertex buffer binding so buffer 0 is bound to our vertex buffer
Allocate index buffer of the requested number of vertices (ibufCount)
Upload the index data to the card
Set parameters of the submesh
Set bounding information (for culling)
Notify Mesh object that it has been loaded
Definition at line 34 of file AirBrake.cpp.
|
inline |
Definition at line 63 of file AirBrake.h.
void Airbrake::applyForce | ( | ) |
Definition at line 171 of file AirBrake.cpp.
|
inline |
Definition at line 68 of file AirBrake.h.
|
inline |
Definition at line 67 of file AirBrake.h.
void Airbrake::updatePosition | ( | float | amount | ) |
Definition at line 165 of file AirBrake.cpp.
|
friend |
Definition at line 37 of file AirBrake.h.
|
private |
Attribute set at spawn.
Definition at line 57 of file AirBrake.h.
|
private |
Definition at line 59 of file AirBrake.h.
|
private |
attribute from truckfile
Definition at line 56 of file AirBrake.h.
|
private |
Definition at line 48 of file AirBrake.h.
|
private |
Definition at line 53 of file AirBrake.h.
|
private |
Definition at line 50 of file AirBrake.h.
|
private |
Definition at line 51 of file AirBrake.h.
|
private |
Definition at line 52 of file AirBrake.h.
|
private |
gfx attribute
Definition at line 54 of file AirBrake.h.
|
private |
Current state.
Definition at line 55 of file AirBrake.h.
|
private |
Definition at line 49 of file AirBrake.h.