currently I am developing a rendering engine (mostly for making models to insert into a game), inside this engine I have a class (designed for making vector points) when you use this you set a distance and direction relative to a point (the bone joint) it then sets the XYZ points depending on the given rotation and distance. Here is the coding so far
public class Vec
{
//their dropin us presents... why are they explodin???
int distanceToJoint;
int directionToJointY;
int directionToJointX;
int directionToJointZ;
int xpos;
int ypos;
int zpos;
SkelBone skel;
public Vec (int ds, int dry, int drx,int drz, SkelBone sk)
{
distanceToJoint = ds;
directionToJointY = dry;
directionToJointX = drx;
directionToJointZ = drz;
skel = sk;
}
}
basically I need to find a way to set xpos, ypos and zpos