Struct RigidBodyAspect.TypeHandle
A handle to the enclosing aspect type, used to access a Rigid
Inherited Members
Namespace: Unity.Physics.Aspects
Assembly: Unity.Physics.dll
Syntax
public struct RigidBodyAspect.TypeHandle
Constructors
TypeHandle(ref SystemState)
Create the aspect type handle from an system state.
Declaration
public TypeHandle(ref SystemState state)
Parameters
Type | Name | Description |
---|---|---|
System |
state | System state to create the type handle from. |
Methods
Resolve(ArchetypeChunk)
Get the enclosing aspect's Rigid
Declaration
public RigidBodyAspect.ResolvedChunk Resolve(ArchetypeChunk chunk)
Parameters
Type | Name | Description |
---|---|---|
Archetype |
chunk | The ArchetypeChunk to extract the aspect's ResolvedChunk from. |
Returns
Type | Description |
---|---|
Rigid |
A ResolvedChunk representing all instances of the aspect in the chunk. |
Update(ref SystemState)
Update the type handle container. Must be called every frames before using the type handle.
Declaration
public void Update(ref SystemState state)
Parameters
Type | Name | Description |
---|---|---|
System |
state | The system state the aspect type handle was created from. |