CylinderShape3D
A 3D cylinder shape used for physics collision.
A 3D cylinder shape used for physics collision.
A 3D cylinder shape, intended for use in physics. Usually used to provide a shape for a CollisionShape3D.
Note: There are several known bugs with cylinder collision shapes. Using CapsuleShape3D or BoxShape3D instead is recommended.
Performance: CylinderShape3D is fast to check collisions against, but it is slower than CapsuleShape3D, BoxShape3D, and SphereShape3D.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
CylinderShape3DConstructor
public CylinderShape3D();Properties2
HeightProperty
public float Height { get; set; }The cylinder's height.
RadiusProperty
public float Radius { get; set; }The cylinder's radius.
Methods4
GetHeightfloat
public float GetHeight();Returns
floatGetRadiusfloat
public float GetRadius();Returns
floatSetHeightvoid
public void SetHeight(float height);| Name | Type | Default |
|---|---|---|
height | float | — |
SetRadiusvoid
public void SetRadius(float radius);| Name | Type | Default |
|---|---|---|
radius | float | — |
Reckfell Engine documentationBack to top ↑