Example #1
0
	SceneNode(GLfloat x = 0, GLfloat y = 0, GLfloat z = 0, 
		GLfloat velx = 0, GLfloat vely = 0, GLfloat velz = 0,
		GLfloat accx = 0, GLfloat accy = 0, GLfloat accz = 0) 
	{
		newX = 0;
		newY = 0;
		newZ = 0;

		this->x[POS] = x;
		this->x[VEL] = velx;
		this->x[ACC] = accx;

		this->y[POS] = y;
		this->y[VEL] = vely;
		this->y[ACC] = accy;

		this->z[POS] = z;
		this->z[VEL] = velz;
		this->z[ACC] = accz;

		transform.setIdentity();
		normTransform.setIdentity();
		alive = true;
	}
Example #2
0
 SceneNode() {
     transform.setIdentity();
     UNIFORM_mvpMatrix.setIdentity();
 }