Table of Contents

Struct World.SpanData

Namespace
Jitter2
Assembly
Jitter2.dll

Provides direct access to body, contact, and constraint data stored in unmanaged memory.

public readonly struct World.SpanData
Inherited Members

Remarks

Do not retain spans across calls to Step(float, bool) or changes to bodies, contacts, or constraints: these operations can move or resize the underlying storage. Do not access the spans while the world is being stepped.

Constructors

SpanData(World)

Provides direct access to body, contact, and constraint data stored in unmanaged memory.

public SpanData(World world)

Parameters

world World

Remarks

Do not retain spans across calls to Step(float, bool) or changes to bodies, contacts, or constraints: these operations can move or resize the underlying storage. Do not access the spans while the world is being stepped.

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