Hey I need some help with animated textures. I'm looking for some example code.
I dont know where to start.
Thank you so much.
I dont know where to start.
Thank you so much.
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.
Show posts MenuSimpleVector startLocation = new SimpleVector(Interact2D.reproject2D3D(world.getCamera(), fb, (int)mPreviousX2, (int) mPreviousY2)).normalize();
SimpleVector currentLocation = new SimpleVector(Interact2D.reproject2D3D(world.getCamera(), fb, (int) me.getX(), (int) me.getY())).normalize();
double alpha = Math.acos(currentLocation.y) - Math.acos(startLocation.y);
double beta = Math.atan2(currentLocation.z, currentLocation.x) - Math.atan2(startLocation.z, startLocation.x);
double tRotX = rotX - MathUtil.toDegrees((float)beta);
rotX = tRotX%360;
Page created in 0.019 seconds with 12 queries.