Пример #1
0
	    public ConvexTriangleMeshShape(StridingMeshInterface meshInterface, bool calcAabb)
        {
	        m_shapeType = BroadphaseNativeTypes.CONVEX_TRIANGLEMESH_SHAPE_PROXYTYPE;
	        if ( calcAabb )
            {
		        RecalcLocalAabb();
            }
        }
Пример #2
0
		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);

		}
Пример #3
0
 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;
 }