391
Well, nice job. I like dark themes. Nice an contrasting:)
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
SimpleVector vec,objcenter;
float[] boundingvec;
boundingvec = obj.getMesh().getBoundingBox();
objcenter = obj.getTransformedCenter();
vec = new SimpleVector(
0, boundingvec[3], boundingvec[4]);
vec.matMul(obj.getWorldTransformation());
theY = Interact2D.project3D2D(world.getCamera(),buffer,vec).y;
float radians = -90f/(180f/(float)Math.PI);
obj.rotateX(radians)