Table of Contents

Class StaticMeshColliderShape

Namespace
Stride.Physics
Assembly
Stride.Physics.dll
public class StaticMeshColliderShape : ColliderShape, IDisposable
Inheritance
StaticMeshColliderShape
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

model Model
services IServiceRegistry

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

vertices ICollection<Vector3>
indices ICollection<int>

Fields

Model

Can be null when this was created without Model

public readonly Model Model

Field Value

Model

Methods

CreateDebugPrimitive(GraphicsDevice)

public override MeshDraw CreateDebugPrimitive(GraphicsDevice device)

Parameters

device GraphicsDevice

Returns

MeshDraw

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)

Parameters

verts Vector3[]
indices int[]