Hi,
I would be soo grateful if someone can help me out with this.
Being totally useless with maths (I have no idea how mat4 works) I want to write a small wrapper some manipulation commands for converting some code.
Basically the engine I was using was Blitz3D. (I use irrlicht a bit too, but I managed to make some funcs for that)
I have extended Object3D and wish to create the following:
PositionEntity(float x, float y, float z) //or vector
{
//Sets the position of the object. (using world coords)
// is setOrigin(new SimpleVextor(xyz)); what i want?
}
MoveEntity(float x, float y, float z) //or vector
{
//moves the object in xyz from it's current position in relation to it's rotation.(using world coords)
}
TranslateEntity(float x, float y, float z) //or vector
{
//Similar to moveentity but moves the object from its current position but using a 0,0,0 rotation.
// does the existing translate do this?
}
TurnEntity(float x, float y, float z) //or vector
{
//turns the object in xyz at it's current position in relation to it's current rotation. (using world coords)
//At the moment i am using rotateX() which seems to be doing it, is this the best way?
}
RotateEntity(float x, float y, float z) //or vector
{
//Sets the rotation of the object. (using world coords)
}
The other thing i cannot work out is why is the getXaxis() etc returning vectors? I was expecting to see a float. The other thing is the camera and lights seem to have setRotation and setPosition, but object3d does't :S
I think if i can get these 5 methods working i will be well on my way.