Is there anyway I can alter an object's world matrix, i.e. the matrix that controls an object rotation and position in world space. Right now, the only way to alter the object rotation/position is thru the POSITION OBJECT and ROTATE OBJECT commands. Sometimes, these commands doesn't work as I need to construct it's world matrix by some matrix math.
For example, let say that I wanted to orient the object based on an arbitary axes, namely alpha, beta, and gamma. These are 3 orthogonal vectors that I calculated for my object orientation. By some basic knowledge of matrix math, I know I can construct the object world matrix as follows:
-- --
| alphax betax gammax |
| alphay betay gammay |
| alphaz betaz gammaz |
| posx posy posz |
-- --
Assume that the position vector is a row vector.
In Direct3D, I know I can use the following command,
device->SetTransform(D3DTS_WORLDMATRIX, &worldMatrix);
Is there anyway that this command is exposed to DBpro?
Bad Nose Entertainment - Where games are forged from the flames of talent and passion.
http://www.badnose.com/