Class PhysicsRuntimeExtensions
Inheritance
PhysicsRuntimeExtensions
Syntax
public static class PhysicsRuntimeExtensions
Methods
RegisterPhysicsRuntimeSystemReadOnly(SystemBase)
Call in your system's OnStartRunning() method if you only want to read physics runtime data from the default physics world
Declaration
public static void RegisterPhysicsRuntimeSystemReadOnly(this SystemBase system)
Parameters
RegisterPhysicsRuntimeSystemReadOnly<T>(SystemBase)
Call in your system's OnStartRunning() method if you only want to read physics runtime data from a non-default physics world.
Each non-default PhysicsWorld should have its own ComponentData type passed in.
Declaration
public static void RegisterPhysicsRuntimeSystemReadOnly<T>(this SystemBase system)
where T : struct, IComponentData
Parameters
Type Parameters
RegisterPhysicsRuntimeSystemReadWrite(SystemBase)
Call in your system's OnStartRunning() method if you want to read and write physics runtime data from the default physics world
Declaration
public static void RegisterPhysicsRuntimeSystemReadWrite(this SystemBase system)
Parameters
RegisterPhysicsRuntimeSystemReadWrite<T>(SystemBase)
Call in your system's OnStartRunning() method if you want to read and write physics runtime data from a non-default physics world.
Each non-default PhysicsWorld should have its own ComponentData type passed in.
Declaration
public static void RegisterPhysicsRuntimeSystemReadWrite<T>(this SystemBase system)
where T : struct, IComponentData
Parameters
Type Parameters