Redid kirsanium xform fix
parent
d6a8885e31
commit
987cca0d4d
|
@ -74,8 +74,8 @@ Plane Transform::xform_inv(const Plane& p_plane) const {
|
||||||
|
|
||||||
Vector3 point=p_plane.normal*p_plane.d;
|
Vector3 point=p_plane.normal*p_plane.d;
|
||||||
Vector3 point_dir=point+p_plane.normal;
|
Vector3 point_dir=point+p_plane.normal;
|
||||||
xform_inv(point);
|
point=xform_inv(point);
|
||||||
xform_inv(point_dir);
|
point_dir=xform_inv(point_dir);
|
||||||
|
|
||||||
Vector3 normal=point_dir-point;
|
Vector3 normal=point_dir-point;
|
||||||
normal.normalize();
|
normal.normalize();
|
||||||
|
|
Loading…
Reference in New Issue