Answer the question
In order to leave comments, you need to log in
Why does an object shake in OpenGL?
The object in my program moves according to the formula y = d * Math.cos(alpha); x = d * Math.sin(alpha);
(where x is the distance from the center and alpha is the angle of rotation). The camera is following this object:
Camera.setPosition(new Vector3d(-object.getPosition().getX(), 0, -object.getPosition().getZ() + (7000.0 / 100000)));
Answer the question
In order to leave comments, you need to log in
Does the Camera
class use perspective?
It is possible that incorrect calculations occur all the time, but they become noticeable only when approaching (more noticeable) or with active movements at a distance (which will not be easy to notice with continuous movement).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question