Table of Contents

Struct b3ContactId

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

References a contact instance. Mirror of b3ContactId.

public struct b3ContactId : IEquatable<b3ContactId>

Implements

Inherited Members

Remarks

Contacts are transient. A contact identifier can be orphaned by any world mutation or time step, so validate it with b3Contact_IsValid before use.

Fields

generation

The generation counter used to detect stale identifiers.

index1

The one-based contact index. Zero means null.

padding

Explicit padding present in the C layout.

world0

The index of the owning world.

Properties

IsNull

Gets a value indicating whether this identifier is null.

Methods

Equals(b3ContactId)

Indicates whether the current object is equal to another object of the same type.

Equals(object?)

Indicates whether this instance and a specified object are equal.

GetHashCode()

Returns the hash code for this instance.

Operators

operator ==(b3ContactId, b3ContactId)

Determines whether two identifiers are equal.

operator !=(b3ContactId, b3ContactId)

Determines whether two identifiers are unequal.