Skip to content
EvilEngine.Formats.Collision

ColliderShape.Cylinder record

public sealed record ColliderShape.Cylinder : ColliderShape

A collider shape that’s a cylinder with flat ends, centred on the collider’s origin and running along its Y axis.

new Collider(new ColliderShape.Cylinder(0.9f, 0.3f), ["solid"])
Assembly
EvilEngine.Formats
Commit
4ff877b1

Members

ColliderShape.Cylinder constructor

public ColliderShape.Cylinder(float Height, float Radius)

Makes a cylinder of height and radius.

Height property

public float Height { get; init; }

The cylinder’s whole length from end to end, in metres. It must be above 0 for the collision to be written.

Radius property

public float Radius { get; init; }

The cylinder’s radius in metres. It must be above 0 for the collision to be written.