mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 08:02:39 +08:00
fix plane dir normalize for v3.4.0 (#4069)
This commit is contained in:
committed by
GitHub
parent
858699cb4b
commit
316de1e7cb
@@ -47,6 +47,7 @@ void Plane::define(const Vec3 &v0, const Vec3 &v1, const Vec3 &v2) {
|
||||
|
||||
Vec3 dist;
|
||||
Vec3::crossProduct(dist1, dist2, &dist);
|
||||
dist.normalize();
|
||||
define(dist, v0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user