docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct SimulationStepInput

    Parameters for a simulation step.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Physics
    Assembly: Unity.Physics.dll
    Syntax
    public struct SimulationStepInput

    Fields

    DefaultMaxDynamicDepenetrationVelocity

    Default MaxDynamicDepenetrationVelocity value.

    Declaration
    public const float DefaultMaxDynamicDepenetrationVelocity = 3
    Field Value
    Type Description
    float

    DefaultMaxStaticDepenetrationVelocity

    Default MaxStaticDepenetrationVelocity value.

    Declaration
    public const float DefaultMaxStaticDepenetrationVelocity = Infinity
    Field Value
    Type Description
    float

    Gravity

    Gravity in the physics world, a vector in m/s^2.

    Declaration
    public float3 Gravity
    Field Value
    Type Description
    float3

    HaveStaticBodiesChanged

    Used for optimization of static body synchronization.

    Declaration
    public NativeReference<int>.ReadOnly HaveStaticBodiesChanged
    Field Value
    Type Description
    NativeReference<int>.ReadOnly

    MaxDynamicDepenetrationVelocity

    Maximum relative velocity that can be produced when separating intersecting dynamic rigid bodies.

    Declaration
    public float MaxDynamicDepenetrationVelocity
    Field Value
    Type Description
    float

    MaxStaticDepenetrationVelocity

    Maximum relative velocity that can be produced when separating dynamic rigid bodies intersecting with static rigid bodies.

    Declaration
    public float MaxStaticDepenetrationVelocity
    Field Value
    Type Description
    float

    NumSolverIterations

    Number of Gauss-Seidel iterations to perform while solving constraints.

    Declaration
    public int NumSolverIterations
    Field Value
    Type Description
    int

    SolverStabilizationHeuristicSettings

    Settings for solver stabilization heuristic in Unity.Physics.

    Declaration
    public Solver.StabilizationHeuristicSettings SolverStabilizationHeuristicSettings
    Field Value
    Type Description
    Solver.StabilizationHeuristicSettings

    SynchronizeCollisionWorld

    Whether to update the collision world after the step for more precise queries.

    Declaration
    public bool SynchronizeCollisionWorld
    Field Value
    Type Description
    bool

    TimeStep

    Portion of time to step the physics world for. This is the frame timestep.

    Declaration
    public float TimeStep
    Field Value
    Type Description
    float

    World

    Physics world to be stepped.

    Declaration
    public PhysicsWorld World
    Field Value
    Type Description
    PhysicsWorld

    Properties

    NumSubsteps

    Number of substep iterations to perform while solving constraints. No substepping will occur when set to 1.

    Declaration
    public int NumSubsteps { get; set; }
    Property Value
    Type Description
    int

    SubstepTimeStep

    Time step used by the Jacobians during build and solve for substepping.

    Declaration
    public float SubstepTimeStep { get; }
    Property Value
    Type Description
    float
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)