StaticMeshColliderShape Class
Namespace: Stride.Physics
Assembly: Stride.Physics.dll
Derived from StaticMeshColliderShape:
public class StaticMeshColliderShape : ColliderShape, IDisposable
|
Improve this Doc
View Source
Constructors
StaticMeshColliderShape(ICollection<Vector3>, ICollection<Int32>, Vector3)
Create a static collider from the vertices provided, ICollection will be duplicated before usage,
changes to the collection provided won't be reflected on the collider or Vertices and Indices.
public StaticMeshColliderShape(ICollection<Vector3> vertices, ICollection<int> indices, Vector3 scaling)
Parameters
Type |
Name |
Description |
System.Collections.Generic.ICollection<Vector3> |
vertices |
|
System.Collections.Generic.ICollection<System.Int32> |
indices |
|
Vector3 |
scaling |
|
|
Improve this Doc
View Source
Properties
Indices
public IReadOnlyList<int> Indices { get; }
Property Value
Type |
Description |
System.Collections.Generic.IReadOnlyList<System.Int32> |
|
Vertices
public IReadOnlyList<Vector3> Vertices { get; }
Property Value
Type |
Description |
System.Collections.Generic.IReadOnlyList<Vector3> |
|
|
Improve this Doc
View Source
Methods
CreateDebugPrimitive(GraphicsDevice)
public override MeshDraw CreateDebugPrimitive(GraphicsDevice device)
Parameters
Returns
Overrides
Extension Methods