Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    Constraint Class

    Namespace: Stride.Physics
    Assembly: Stride.Physics.dll
    System.Object → Constraint
    Derived from Constraint: ConeTwistConstraint GearConstraint Generic6DoFConstraint HingeConstraint Point2PointConstraint SliderConstraint

    public class Constraint : IDisposable, IRelative
    Name Description
    Properties
    AppliedImpulse

    Gets the applied impulse.

    BreakingImpulseThreshold

    Gets or sets the breaking impulse threshold.

    Enabled

    Gets or sets a value indicating whether this Constraint is enabled.

    RigidBodyA

    Gets the rigid body a.

    RigidBodyB

    Gets the rigid body b.

    Simulation

    Gets the Simulation where this Constraint is being processed

    Methods
    Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

    | Improve this Doc View Source

    Properties


    AppliedImpulse

    Gets the applied impulse.

    public float AppliedImpulse { get; }
    Property Value
    Type Description
    System.Single

    The applied impulse.


    BreakingImpulseThreshold

    Gets or sets the breaking impulse threshold.

    public float BreakingImpulseThreshold { get; set; }
    Property Value
    Type Description
    System.Single

    The breaking impulse threshold.


    Enabled

    Gets or sets a value indicating whether this Constraint is enabled.

    public bool Enabled { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if enabled; otherwise, false.


    RigidBodyA

    Gets the rigid body a.

    public RigidbodyComponent RigidBodyA { get; }
    Property Value
    Type Description
    RigidbodyComponent

    The rigid body a.


    RigidBodyB

    Gets the rigid body b.

    public RigidbodyComponent RigidBodyB { get; }
    Property Value
    Type Description
    RigidbodyComponent

    The rigid body b.


    Simulation

    Gets the Simulation where this Constraint is being processed

    public Simulation Simulation { get; }
    Property Value
    Type Description
    Simulation
    | Improve this Doc View Source

    Methods


    Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

    public virtual void Dispose()

    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