Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    Generic6DoFSpringConstraint Class

    Namespace: Stride.Physics
    Assembly: Stride.Physics.dll
    System.Object → Constraint → Generic6DoFConstraint → Generic6DoFSpringConstraint
    Derived from Generic6DoFSpringConstraint:

    public class Generic6DoFSpringConstraint : Generic6DoFConstraint, IDisposable, IRelative
    Name Description
    Methods
    EnableSpring(Int32, Boolean)

    Enables the spring.

    SetDamping(Int32, Single)

    Sets the damping.

    SetEquilibriumPoint(Int32, Single)

    Sets the equilibrium point.

    SetStiffness(Int32, Single)

    Sets the stiffness.

    | Improve this Doc View Source

    Methods


    EnableSpring(Int32, Boolean)

    Enables the spring.

    public void EnableSpring(int index, bool onOff)
    Parameters
    Type Name Description
    System.Int32 index

    The index.

    System.Boolean onOff

    if set to true [on off].


    SetDamping(Int32, Single)

    Sets the damping.

    public void SetDamping(int index, float damping)
    Parameters
    Type Name Description
    System.Int32 index

    The index.

    System.Single damping

    The damping.


    SetEquilibriumPoint(Int32, Single)

    Sets the equilibrium point.

    public void SetEquilibriumPoint(int index, float val)
    Parameters
    Type Name Description
    System.Int32 index

    The index.

    System.Single val

    The value.


    SetStiffness(Int32, Single)

    Sets the stiffness.

    public void SetStiffness(int index, float stiffness)
    Parameters
    Type Name Description
    System.Int32 index

    The index.

    System.Single stiffness

    The stiffness.


    Inherited Members

    Generic6DoFConstraint.Dispose()
    Generic6DoFConstraint.AngularLowerLimit
    Generic6DoFConstraint.AngularUpperLimit
    Generic6DoFConstraint.LinearLowerLimit
    Generic6DoFConstraint.LinearUpperLimit
    Generic6DoFConstraint.SetFrames(Matrix, Matrix)
    Generic6DoFConstraint.SetLimit(Int32, Single, Single)
    Generic6DoFConstraint.TranslationalLimitMotor
    Generic6DoFConstraint.RotationalLimitMotor
    Constraint.RigidBodyA
    Constraint.RigidBodyB
    Constraint.Enabled
    Constraint.BreakingImpulseThreshold
    Constraint.AppliedImpulse
    Constraint.Simulation

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

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