- Home /
Question by
Flynn · Apr 27, 2012 at 11:14 PM ·
camerapixelconversionmeter
Pixel-to-meter camera
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?
Comment
Best Answer
Answer by Statement · Apr 27, 2012 at 11:43 PM
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.