Class PhysicsScriptComponentExtensions
Extension methods for the ScriptComponent related to phystics
public static class PhysicsScriptComponentExtensions
- Inheritance
-
PhysicsScriptComponentExtensions
Methods
GetSimulation(ScriptComponent)
Gets the curent Simulation.
public static Simulation GetSimulation(this ScriptComponent scriptComponent)
Parameters
scriptComponent
ScriptComponentThe script component to query physics from
Returns
- Simulation
The simulation object or null if there are no simulation running for the current scene.