Table of Contents

Class TorusCollider

Namespace
Stride.CommunityToolkit.Bepu
Assembly
Stride.CommunityToolkit.Bepu.dll

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

torus Primitive3D.TorusShape

Returns

ConvexHullCollider

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)

Parameters

radius float
thickness float

Returns

ConvexHullCollider