PhysicsEngineCreateApproximateCylinderGeometry Method |
Approximates a cylindrical collision geometry using a convex-hull.
Namespace:
Demo3D.Visuals
Assembly:
Demo3D.Core (in Demo3D.Core.dll) Version: 15.0.2.11458
Syntaxpublic PhysicsConvexHullGeometry CreateApproximateCylinderGeometry(
double radius,
double length,
double taper = 0,
int points = 10,
double margin = 0
)
Parameters
- radius
- Type: SystemDouble
The radius for the cylinder geometry in the xy-plane. - length
- Type: SystemDouble
The length for the cylinder geometry along the z-axis. - taper (Optional)
- Type: SystemDouble
The taper angle (in radians). - points (Optional)
- Type: SystemInt32
The number of points to use when approximating the circular profile. - margin (Optional)
- Type: SystemDouble
The collision margin for the convex-hull.
Return Value
Type:
PhysicsConvexHullGeometryThe created convex-hull geometry.
See Also