Skip to content
Permalink
Browse files

[Physics] Clarify comments in StaticMeshColliderShape

  • Loading branch information
Eideren committed May 27, 2019
1 parent 4db7f42 commit e547ad6b57c7ce58988050a6ef5c394fdd2c2e1e
Showing with 3 additions and 4 deletions.
  1. +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

Please sign in to comment.
You can’t perform that action at this time.