Basically, I want to ask the camera this: How many meters would a cube at X distance from the camera have to move in order for its position’s WorldToScreenPoint to change by one pixel
Is that possible?
Basically, I want to ask the camera this: How many meters would a cube at X distance from the camera have to move in order for its position’s WorldToScreenPoint to change by one pixel
Is that possible?
Cast a ray from the next pixel onto a plane based on the cubes position. You can use the point it intersects with to calculate the distance between its current position and the raycasted position.