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
worldWorld
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
ActiveContacts
Span over active contact data.
public Span<ContactData> ActiveContacts { get; }
Property Value
ActiveRigidBodies
Span over active (awake) rigid body data.
public Span<RigidBodyData> ActiveRigidBodies { get; }
Property Value
ActiveSmallConstraints
Span over active small constraint data.
public Span<SmallConstraintData> ActiveSmallConstraints { get; }
Property Value
Constraints
Span over all constraint data (active and inactive).
public Span<ConstraintData> Constraints { get; }
Property Value
Contacts
Span over all contact data (active and inactive).
public Span<ContactData> Contacts { get; }
Property Value
InactiveConstraints
Span over inactive constraint data.
public Span<ConstraintData> InactiveConstraints { get; }
Property Value
InactiveContacts
Span over inactive contact data.
public Span<ContactData> InactiveContacts { get; }
Property Value
InactiveRigidBodies
Span over inactive (sleeping) rigid body data.
public Span<RigidBodyData> InactiveRigidBodies { get; }
Property Value
InactiveSmallConstraints
Span over inactive small constraint data.
public Span<SmallConstraintData> InactiveSmallConstraints { get; }
Property Value
RigidBodies
Span over all rigid body data (active and inactive).
public Span<RigidBodyData> RigidBodies { get; }
Property Value
SmallConstraints
Span over all small constraint data (active and inactive).
public Span<SmallConstraintData> SmallConstraints { get; }
Property Value
TotalBytesAllocated
Returns the total amount of unmanaged memory allocated in bytes.
public long TotalBytesAllocated { get; }