Search Results for

    Show / Hide Table of Contents

    Struct SpringParameters

    Controls spring parameters for a physics joint limits. If a limit is soft (body bounces back due to restitution when the limit is reached) the spring will pull the body back towards the limit using the specified parameters.

    Assembly: FlaxEngine.dll
    File: Engine/Physics/Joints/Limits.h
    Syntax
    public struct SpringParameters

    Constructors

    SpringParameters()

    Constructs a spring with no force.

    Declaration
    public SpringParameters()

    SpringParameters(const float stiffness, const float damping)

    Constructs a spring.

    Declaration
    public SpringParameters(const float stiffness, const float damping)
    Parameters
    float stiffness

    Spring strength. Force proportional to the position error.

    float damping

    Damping strength. Force proportional to the velocity error.

    Fields

    Damping

    Damping strength. Force proportional to the velocity error.

    Declaration
    public float Damping
    Field Value
    float

    Stiffness

    The spring strength. Force proportional to the position error.

    Declaration
    public float Stiffness
    Field Value
    float

    Methods

    operator==(const SpringParameters& other)

    Declaration
    public bool operator==(const SpringParameters& other) const
    Parameters
    SpringParameters other

    Returns
    bool

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat