#include <obj.h>
Inheritance diagram for Obj:
Now with extra affine transforms!
Public Member Functions | |
void | setup (float px, float py, float pz, float vx,\float vy, float vz, float ux, float uy, float uz) |
Set all parameters in one go. | |
void | pos (float px, float py, float pz) |
Sets position vector. | |
void | view (float ux, float uy, float uz) |
Sets view vector. | |
void | up (float vx, float vy, float vz) |
Sets up vector. | |
void | update (void) |
Creates strafe vector (normalised). | |
Public Attributes | |
Vec4 | vpos |
The vector for the position of the object. | |
Vec4 | vview |
The vector for the view of the the object. | |
Vec4 | vup |
The vector for the up direction of the object. | |
Vec4 | vstrafe |
The vector for the strafe direction. |
|
Sets position vector.
|
|
Set all parameters in one go. Calls pos, view, up.
|
Here is the call graph for this function:
|
Sets up vector.
|
|
Sets view vector.
|
|
The vector for the position of the object. 3D only. |
|
The vector for the strafe direction. Cross product of up and view. |
|
The vector for the up direction of the object. Needed for cameras etc. 3D only. |
|
The vector for the view of the the object. 3D only. By view we mean the point that the vector is looking at. |