Table of Contents

Struct DebugShape

Namespace
Box3D
Assembly
Box3D.NET.dll

The shape Box3D is asking the application to build a drawable for.

public readonly ref struct DebugShape

Inherited Members

Remarks

Spheres and capsules arrive whole, because they are a handful of floats and a renderer usually wants them to pick a mesh resolution. Hulls, meshes, height fields and compounds do not: they point at engine-owned data whose layout belongs to the C API. Reach those through Box3D.DebugShape.Shape, which is a normal handle and can be queried like any other.

Valid only for the duration of the call that produced it.

Properties

Shape

Gets the shape this drawable is for.

Type

Gets what kind of shape it is.

Methods

TryGetCapsule(out Capsule)

Gets the capsule, when this is one.

TryGetSphere(out Sphere)

Gets the sphere, when this is one.