public ConvexTriangleMeshShape(StridingMeshInterface meshInterface, bool calcAabb) { m_shapeType = BroadphaseNativeTypes.CONVEX_TRIANGLEMESH_SHAPE_PROXYTYPE; if ( calcAabb ) { RecalcLocalAabb(); } }
public MyNodeOverlapCallback(ITriangleCallback callback, StridingMeshInterface meshInterface) { m_meshInterface = meshInterface; m_callback = callback; // populate with basic data. m_triangle.Add(Vector3.One); m_triangle.Add(Vector3.One); m_triangle.Add(Vector3.One); }
public TriangleMeshShape(StridingMeshInterface meshInterface) { m_inConstructor = true; m_meshInterface = meshInterface; m_shapeType = BroadphaseNativeTypes.TRIANGLE_MESH_SHAPE_PROXYTYPE; if (meshInterface.HasPremadeAabb()) { meshInterface.GetPremadeAabb(ref m_localAabbMin, ref m_localAabbMax); } else { RecalcLocalAabb(); } m_inConstructor = false; }