mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Revert "Renamed plane's d to distance"
This reverts commit ec7b481170.
This was wrong, `d` is not a distance but the `d` constant in the
parametric equation `ax + by + cz = d` describing the plane.
This commit is contained in:
parent
6ab92464bc
commit
94721f5ab8
36 changed files with 126 additions and 126 deletions
|
|
@ -380,7 +380,7 @@ void test_vec(Plane p_vec) {
|
|||
Plane v0 = cm.xform4(p_vec);
|
||||
|
||||
print_line("out: " + v0);
|
||||
v0.normal.z = (v0.distance / 100.0 * 2.0 - 1.0) * v0.distance;
|
||||
v0.normal.z = (v0.d / 100.0 * 2.0 - 1.0) * v0.d;
|
||||
print_line("out_F: " + v0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue