Class StaticMeshColliderShape
public class StaticMeshColliderShape : ColliderShape, IDisposable- Inheritance
- 
      objectStaticMeshColliderShape
- Implements
- Inherited Members
- Extension Methods
Constructors
StaticMeshColliderShape(Model, IServiceRegistry)
Create a static collider from an asset model, any changes the model receives won't be reflected on the collider
public StaticMeshColliderShape(Model model, IServiceRegistry services)Parameters
- modelModel
- servicesIServiceRegistry
StaticMeshColliderShape(ICollection<Vector3>, ICollection<int>)
Create a static collider from the data provided, data will only be read, changes to it won't be reflected on the collider.
public StaticMeshColliderShape(ICollection<Vector3> vertices, ICollection<int> indices)Parameters
- verticesICollection<Vector3>
- indicesICollection<int>
Fields
Model
Can be null when this was created without Model
public readonly Model ModelField Value
Methods
CreateDebugPrimitive(GraphicsDevice)
public override MeshDraw CreateDebugPrimitive(GraphicsDevice device)Parameters
- deviceGraphicsDevice
Returns
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public override void Dispose()GetMeshDataCopy(out Vector3[], out int[])
public void GetMeshDataCopy(out Vector3[] verts, out int[] indices)