Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    PhysicsScriptComponentExtensions Class

    Namespace: Stride.Physics
    Assembly: 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.

    | Improve this Doc View Source

    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.


    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation