New answers tagged aabb
1
Short answer: rounding down.
Long answer:
The ray in the image above might be represented as r = u + tv where u = <0,-3/4> and v = <1, 8/9>, i.e. r follows the line y = (3/4)+ (9/8)x.
Note: that is a typo, it should read y = (3/4)+ (8/9)x.
Thus, ray.origin.x = 0 and ray.origin.y = -3/4.
We can start from these terms: y = y₀ + mx. The ray ...
Top 50 recent answers are included
Related Tags
aabb × 103collision-detection × 70
collision-resolution × 25
physics × 18
c++ × 16
3d × 12
java × 10
2d × 10
c# × 7
mathematics × 6
bounding-boxes × 6
rotation × 5
raytracing × 5
unity × 4
algorithm × 4
geometry × 4
platformer × 4
raycasting × 4
javascript × 3
lwjgl × 3
voxels × 3
glm × 3
separating-axis-theorem × 3
xna × 2
libgdx × 2