Merge pull request #199 from BastiaanOlij/fix_xform

Redid kirsanium xform fix
pull/201/head
Bastiaan Olij 2018-11-19 21:20:18 +11:00 committed by GitHub
commit e83fd994f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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();