// Token: 0x060041E2 RID: 16866 RVA: 0x0014EFD0 File Offset: 0x0014D3D0 public override void GenerateColliderGeometry() { Mesh colliderMesh = base.GetColliderMesh(); if (colliderMesh) { colliderMesh.Clear(); CapsulePrimitive.GenerateGeometry(colliderMesh, this.radius, this.height, this.sides, this.heightSegments, this.preserveHeight, this.normalsType, this.pivotPosition); base.RefreshMeshCollider(); } base.GenerateColliderGeometry(); }
// Token: 0x060041E0 RID: 16864 RVA: 0x0014EF0C File Offset: 0x0014D30C public void GenerateGeometry(float radius, float height, int sides, int heightSegments, bool preserverHeight, NormalsType normalsType, PivotPosition pivotPosition) { MeshFilter component = base.GetComponent <MeshFilter>(); if (component.sharedMesh == null) { component.sharedMesh = new Mesh(); } Mesh sharedMesh = component.sharedMesh; base.GenerationTimeMS = CapsulePrimitive.GenerateGeometry(sharedMesh, radius, height, sides, heightSegments, preserverHeight, normalsType, pivotPosition); this.radius = radius; this.height = height; this.heightSegments = heightSegments; this.sides = sides; this.preserveHeight = preserverHeight; this.normalsType = normalsType; this.flipNormals = false; this.pivotPosition = pivotPosition; }