Click or drag to resize

PhysicsEngineCreateApproximateCylinderGeometry Method

Approximates a cylindrical collision geometry using a convex-hull.

Namespace: Demo3D.Visuals
Assembly: Demo3D.Core (in Demo3D.Core.dll) Version: 19.00.00
Syntax
C#
public PhysicsConvexHullGeometry CreateApproximateCylinderGeometry(
	double radius,
	double length,
	double taper = 0,
	int points = 10,
	double margin = 0
)

Parameters

radius  Double
The radius for the cylinder geometry in the xy-plane.
length  Double
The length for the cylinder geometry along the z-axis.
taper  Double  (Optional)
The taper angle (in radians).
points  Int32  (Optional)
The number of points to use when approximating the circular profile.
margin  Double  (Optional)
The collision margin for the convex-hull.

Return Value

PhysicsConvexHullGeometry
The created convex-hull geometry.
See Also