PhysicsScriptComponentExtensions Class
Namespace: Stride.PhysicsAssembly: Stride.Physics.dll
Extension methods for the ScriptComponent related to phystics
System.Object →
PhysicsScriptComponentExtensions
Derived from PhysicsScriptComponentExtensions:
public static class PhysicsScriptComponentExtensions
Name | Description | |
---|---|---|
Methods | ||
GetSimulation(ScriptComponent) | Gets the curent Simulation. |
Methods
GetSimulation(ScriptComponent)
Gets the curent Simulation.
public static Simulation GetSimulation(this ScriptComponent scriptComponent)
Parameters
Type | Name | Description |
---|---|---|
ScriptComponent | scriptComponent | The script component to query physics from |
Returns
Type | Description |
---|---|
Simulation | The simulation object or null if there are no simulation running for the current scene. |