mirror of
https://github.com/godotengine/godot
synced 2024-09-05 20:49:58 +00:00
Fix xform_inv of Plane, intermediate results were ignored
This commit is contained in:
parent
950dedbb68
commit
4cb070e590
|
@ -144,8 +144,8 @@ _FORCE_INLINE_ Plane Transform::xform(const Plane &p_plane) const {
|
|||
_FORCE_INLINE_ Plane Transform::xform_inv(const Plane &p_plane) const {
|
||||
Vector3 point = p_plane.normal * p_plane.d;
|
||||
Vector3 point_dir = point + p_plane.normal;
|
||||
xform_inv(point);
|
||||
xform_inv(point_dir);
|
||||
point = xform_inv(point);
|
||||
point_dir = xform_inv(point_dir);
|
||||
|
||||
Vector3 normal = point_dir - point;
|
||||
normal.normalize();
|
||||
|
|
Loading…
Reference in a new issue