@@ -847,13 +847,16 @@ MArray* Mesh::DownloadBuffer(bool forceGpu, MTypeObject* resultType, int32 typeI
|
||||
return result;
|
||||
}
|
||||
|
||||
Array<Float3> Mesh::GetCollisionProxyPoints() const
|
||||
#if USE_EDITOR
|
||||
|
||||
Array<Vector3> Mesh::GetCollisionProxyPoints() const
|
||||
{
|
||||
PROFILE_CPU();
|
||||
Array<Vector3> result;
|
||||
#if USE_PRECISE_MESH_INTERSECTS
|
||||
for (int i = 0; i < _collisionProxy.Triangles.Count(); ++i)
|
||||
for (int32 i = 0; i < _collisionProxy.Triangles.Count(); i++)
|
||||
{
|
||||
auto triangle = _collisionProxy.Triangles[i];
|
||||
auto triangle = _collisionProxy.Triangles.Get()[i];
|
||||
result.Add(triangle.V0);
|
||||
result.Add(triangle.V1);
|
||||
result.Add(triangle.V2);
|
||||
@@ -863,3 +866,5 @@ Array<Float3> Mesh::GetCollisionProxyPoints() const
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user