Table of Contents

Struct World.SpanData

Namespace
Jitter2
Assembly
Jitter2.dll

Provides access to objects in unmanaged memory. This operation is potentially unsafe.

public readonly struct World.SpanData
Inherited Members

Remarks

The returned spans are backed by unmanaged memory and are only valid until the next world modification that may resize internal buffers (e.g., creating or removing bodies, constraints, contacts, or calling Step(float, bool)). Do not cache these spans. Not safe to use concurrently with Step(float, bool).

Constructors

SpanData(World)

Provides access to objects in unmanaged memory. This operation is potentially unsafe.

public SpanData(World world)

Parameters

world World

Remarks

The returned spans are backed by unmanaged memory and are only valid until the next world modification that may resize internal buffers (e.g., creating or removing bodies, constraints, contacts, or calling Step(float, bool)). Do not cache these spans. Not safe to use concurrently with Step(float, bool).

Properties

ActiveConstraints

Span over active constraint data.

public Span<ConstraintData> ActiveConstraints { get; }

Property Value

Span<ConstraintData>

ActiveContacts

Span over active contact data.

public Span<ContactData> ActiveContacts { get; }

Property Value

Span<ContactData>

ActiveRigidBodies

Span over active (awake) rigid body data.

public Span<RigidBodyData> ActiveRigidBodies { get; }

Property Value

Span<RigidBodyData>

ActiveSmallConstraints

Span over active small constraint data.

public Span<SmallConstraintData> ActiveSmallConstraints { get; }

Property Value

Span<SmallConstraintData>

Constraints

Span over all constraint data (active and inactive).

public Span<ConstraintData> Constraints { get; }

Property Value

Span<ConstraintData>

Contacts

Span over all contact data (active and inactive).

public Span<ContactData> Contacts { get; }

Property Value

Span<ContactData>

InactiveConstraints

Span over inactive constraint data.

public Span<ConstraintData> InactiveConstraints { get; }

Property Value

Span<ConstraintData>

InactiveContacts

Span over inactive contact data.

public Span<ContactData> InactiveContacts { get; }

Property Value

Span<ContactData>

InactiveRigidBodies

Span over inactive (sleeping) rigid body data.

public Span<RigidBodyData> InactiveRigidBodies { get; }

Property Value

Span<RigidBodyData>

InactiveSmallConstraints

Span over inactive small constraint data.

public Span<SmallConstraintData> InactiveSmallConstraints { get; }

Property Value

Span<SmallConstraintData>

RigidBodies

Span over all rigid body data (active and inactive).

public Span<RigidBodyData> RigidBodies { get; }

Property Value

Span<RigidBodyData>

SmallConstraints

Span over all small constraint data (active and inactive).

public Span<SmallConstraintData> SmallConstraints { get; }

Property Value

Span<SmallConstraintData>

TotalBytesAllocated

Returns the total amount of unmanaged memory allocated in bytes.

public long TotalBytesAllocated { get; }

Property Value

long