Class TorusCollider
Builds the convex hull collider of a torus, decomposed from the same mesh the model is built from, and shares it between every torus of the same dimensions.
public static class TorusCollider
- Inheritance
-
TorusCollider
Methods
Create(TorusShape)
Creates the collider of torus.
public static ConvexHullCollider Create(Primitive3D.TorusShape torus)
Parameters
torusPrimitive3D.TorusShape
Returns
Create(float, float)
Creates the collider of a torus: radius from the centre to the middle of the tube, a tube of
thickness radius, the torus's minor radius.
public static ConvexHullCollider Create(float radius, float thickness)