Table of Contents

Class Ids

Namespace
Box3D.Native
Assembly
Box3D.NET.Native.dll

Conversions between identifiers and integers, for storing them in application data structures. Port of the static inline helpers in id.h, which are not exported from the shared library.

public static class Ids

Inheritance

Ids

Inherited Members

Examples

Packing a body id into an entity component:

ulong stored = Ids.b3StoreBodyId(bodyId);
// ... later ...
b3BodyId restored = Ids.b3LoadBodyId(stored);

Methods

b3LoadBodyId(ulong)

Restores a body identifier from a 64-bit integer.

b3LoadContactId(ReadOnlySpan<uint>)

Restores a contact identifier from three 32-bit integers.

b3LoadJointId(ulong)

Restores a joint identifier from a 64-bit integer.

b3LoadShapeId(ulong)

Restores a shape identifier from a 64-bit integer.

b3LoadWorldId(uint)

Restores a world identifier from a 32-bit integer.

b3StoreBodyId(b3BodyId)

Stores a body identifier in a 64-bit integer.

b3StoreContactId(b3ContactId, Span<uint>)

Stores a contact identifier in three 32-bit integers.

b3StoreJointId(b3JointId)

Stores a joint identifier in a 64-bit integer.

b3StoreShapeId(b3ShapeId)

Stores a shape identifier in a 64-bit integer.

b3StoreWorldId(b3WorldId)

Stores a world identifier in a 32-bit integer.