Table of Contents

Class PhysicsScriptComponentExtensions

Namespace
Stride.Physics
Assembly
Stride.Physics.dll

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 ScriptComponent

The script component to query physics from

Returns

Simulation

The simulation object or null if there are no simulation running for the current scene.