mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 23:24:41 +00:00
Take object scale into account.
This commit is contained in:
parent
61e106251d
commit
37159bf9ad
1 changed files with 1 additions and 0 deletions
|
|
@ -78,6 +78,7 @@ U32 RecastPolyList::addPoint(const Point3F &p)
|
||||||
verts = newverts;
|
verts = newverts;
|
||||||
}
|
}
|
||||||
Point3F v = p;
|
Point3F v = p;
|
||||||
|
v.convolve(mScale);
|
||||||
mMatrix.mulP(v);
|
mMatrix.mulP(v);
|
||||||
// Insert the new vertex.
|
// Insert the new vertex.
|
||||||
verts[nverts*3] = v.x;
|
verts[nverts*3] = v.x;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue