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
worldWorld
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
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; }