Struct RigidBodyAspect.Lookup
Inherited Members
Namespace: Unity.Physics.Aspects
Assembly: Unity.Physics.dll
Syntax
public struct RigidBodyAspect.Lookup
Constructors
Lookup(ref SystemState)
Create the aspect lookup from an system state.
Declaration
public Lookup(ref SystemState state)
Parameters
Type | Name | Description |
---|---|---|
SystemState | state | The system state to create the aspect lookup from. |
Properties
this[Entity]
Get an aspect instance pointing at a specific entity's components data.
Declaration
public RigidBodyAspect this[Entity entity] { get; }
Parameters
Type | Name | Description |
---|---|---|
Entity | entity | The entity to create the aspect struct from. |
Property Value
Type | Description |
---|---|
RigidBodyAspect | Instance of the aspect struct pointing at a specific entity's components data. |
Methods
Update(ref SystemState)
Update the lookup container. Must be called every frames before using the lookup.
Declaration
public void Update(ref SystemState state)
Parameters
Type | Name | Description |
---|---|---|
SystemState | state | The system state the aspect lookup was created from. |