// Token: 0x06004256 RID: 16982 RVA: 0x00151184 File Offset: 0x0014F584 public override void GenerateColliderGeometry() { Mesh colliderMesh = base.GetColliderMesh(); if (colliderMesh) { colliderMesh.Clear(); SphericalConePrimitive.GenerateGeometry(colliderMesh, this.radius, this.segments, this.coneAngle, this.normalsType, this.pivotPosition); base.RefreshMeshCollider(); } base.GenerateColliderGeometry(); }
// Token: 0x06004254 RID: 16980 RVA: 0x001510E0 File Offset: 0x0014F4E0 public void GenerateGeometry(float radius, int segments, float coneAngle, NormalsType normalsType, PivotPosition pivotPosition) { MeshFilter component = base.GetComponent <MeshFilter>(); if (component.sharedMesh == null) { component.sharedMesh = new Mesh(); } Mesh sharedMesh = component.sharedMesh; base.GenerationTimeMS = SphericalConePrimitive.GenerateGeometry(sharedMesh, radius, segments, coneAngle, normalsType, pivotPosition); this.radius = radius; this.segments = segments; this.coneAngle = coneAngle; this.normalsType = normalsType; this.flipNormals = false; this.pivotPosition = pivotPosition; }