Skip to content
EvilEngine.Formats.Collision

ColliderShape.Sphere record

public sealed record ColliderShape.Sphere : ColliderShape

A collider shape that’s a sphere, centred on the collider’s origin.

new Collider(new ColliderShape.Sphere(0.25f), ["solid"])
Assembly
EvilEngine.Formats
Commit
4ff877b1

Members

ColliderShape.Sphere constructor

public ColliderShape.Sphere(float Radius)

Makes a sphere of radius.

Radius property

public float Radius { get; init; }

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