Permalink
Browse files
[Physics] Clarify comments in StaticMeshColliderShape
- Loading branch information
Showing
with
3 additions
and
4 deletions.
-
+3
−4
sources/engine/Xenko.Physics/Shapes/StaticMeshColliderShape.cs
|
@@ -23,23 +23,22 @@ public class StaticMeshColliderShape : ColliderShape |
|
|
|
|
|
|
|
|
/// <summary> |
|
|
/// Create a static collider from the vertices provided, ICollection will be duplicated before useage, |
|
|
/// your changes to the collection won't be reflected on the collision or <see cref="Vertices"/> and <see cref="Indices"/>. |
|
|
/// 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 <see cref="Vertices"/> and <see cref="Indices"/>. |
|
|
/// </summary> |
|
|
public StaticMeshColliderShape(ICollection<Vector3> vertices, ICollection<int> indices, Vector3 scaling) : this(vertices.ToArray(), indices.ToArray(), scaling) |
|
|
{ |
|
|
|
|
|
} |
|
|
|
|
|
/// <summary> |
|
|
/// Internal constructor, the given arrays won't be |
|
|
/// Internal constructor, expects readonly array; any changes made to the vertices won't be reflected on the physics shape |
|
|
/// </summary> |
|
|
StaticMeshColliderShape(Vector3[] verticesParam, int[] indicesParam, Vector3 scaling) |
|
|
{ |
|
|
Type = ColliderShapeTypes.StaticMesh; |
|
|
Is2D = false; |
|
|
|
|
|
// Enfore static data |
|
|
vertices = verticesParam; |
|
|
indices = indicesParam; |
|
|
|
|
|
0 comments on commit
e547ad6