Search Results for

    Show / Hide Table of Contents

    Class DistanceJoint

    Physics joint that maintains an upper or lower (or both) bound on the distance between two bodies.

    Inheritance
    System.Object
    Object
    SceneObject
    Actor
    Joint
    DistanceJoint
    Implements
    ISerializable
    Inherited Members
    Joint.SetJointLocation(Vector3)
    Joint.SetJointOrientation(Quaternion)
    Joint.GetCurrentForce(Vector3, Vector3)
    Joint.Target
    Joint.BreakForce
    Joint.BreakTorque
    Joint.EnableCollision
    Joint.EnableAutoAnchor
    Joint.TargetAnchor
    Joint.TargetAnchorRotation
    Joint.JointBreak
    Actor.SetLayerRecursive(Int32)
    Actor.SetLayerNameRecursive(String)
    Actor.HasTag()
    Actor.HasTag(Tag)
    Actor.HasTag(String)
    Actor.AddTag(Tag)
    Actor.AddTagRecursive(Tag)
    Actor.RemoveTag(Tag)
    Actor.SetParent(Actor, Boolean, Boolean)
    Actor.GetChild(Int32)
    Actor.GetChild(String)
    Actor.GetChild(Type)
    Actor.GetChildren(Type)
    Actor.DestroyChildren(Single)
    Actor.GetScript(Int32)
    Actor.GetScript(Type)
    Actor.GetScripts(Type)
    Actor.AddMovement(Vector3)
    Actor.AddMovement(Vector3, Quaternion)
    Actor.GetWorldToLocalMatrix(Matrix)
    Actor.GetLocalToWorldMatrix(Matrix)
    Actor.OnDebugDraw()
    Actor.OnDebugDrawSelected()
    Actor.GetPrefabRoot()
    Actor.FindActor(String)
    Actor.FindActor(Type, Boolean)
    Actor.FindActor(Type, String)
    Actor.FindActor(Type, Tag, Boolean)
    Actor.FindScript(Type)
    Actor.HasActorInHierarchy(Actor)
    Actor.HasActorInChildren(Actor)
    Actor.IntersectsItself(Ray, Single, Vector3)
    Actor.Intersects(Ray, Single, Vector3)
    Actor.LookAt(Vector3)
    Actor.LookAt(Vector3, Vector3)
    Actor.LookingAt(Vector3)
    Actor.LookingAt(Vector3, Vector3)
    Actor.ToBytes(Actor[])
    Actor.FromBytes(Byte[])
    Actor.FromBytes(Byte[], Dictionary<Guid, Guid>)
    Actor.TryGetSerializedObjectsIds(Byte[])
    Actor.ToJson()
    Actor.FromJson(String)
    Actor.Clone()
    Actor.OnEnable()
    Actor.OnDisable()
    Actor.OnParentChanged()
    Actor.OnTransformChanged()
    Actor.OnActiveChanged()
    Actor.OnActiveInTreeChanged()
    Actor.OnOrderInParentChanged()
    Actor.OnStaticFlagsChanged()
    Actor.OnLayerChanged()
    Actor.OnBeginPlay()
    Actor.OnEndPlay()
    Actor.AddStaticFlags(StaticFlags)
    Actor.RemoveStaticFlags(StaticFlags)
    Actor.SetStaticFlag(StaticFlags, Boolean)
    Actor.HasStaticFlag(StaticFlags)
    Actor.ResetLocalTransform()
    Actor.AddChild(Type)
    Actor.AddChild<T>()
    Actor.GetChild<T>()
    Actor.TryGetChild<T>(T)
    Actor.GetOrAddChild<T>()
    Actor.AddScript(Type)
    Actor.AddScript<T>()
    Actor.GetScript<T>()
    Actor.TryGetScript<T>(T)
    Actor.FindScript<T>()
    Actor.FindActor<T>(Boolean)
    Actor.FindActor<T>(String)
    Actor.FindActor<T>(Tag, Boolean)
    Actor.GetChildren<T>()
    Actor.GetScripts<T>()
    Actor.RotateAround(Vector3, Vector3, Single, Boolean)
    Actor.ToString()
    Actor.Children
    Actor.Tags
    Actor.Layer
    Actor.Name
    Actor.IsActive
    Actor.StaticFlags
    Actor.PerInstanceRandom
    Actor.LocalPosition
    Actor.LocalOrientation
    Actor.LocalScale
    Actor.Sphere
    Actor.Box
    Actor.BoxWithChildren
    Actor.EditorBox
    Actor.EditorBoxChildren
    Actor.HasContentLoaded
    Actor.IsPrefabRoot
    Actor.IsStatic
    Actor.IsTransformStatic
    Actor.WorldToLocalMatrix
    Actor.LocalToWorldMatrix
    SceneObject.SetParent(Actor, Boolean)
    SceneObject.LinkPrefab(Guid, Guid)
    SceneObject.BreakPrefabLink()
    SceneObject.GetNamePath(Char)
    SceneObject.IsDuringPlay
    SceneObject.HasParent
    SceneObject.HasPrefabLink
    SceneObject.PrefabID
    SceneObject.PrefabObjectID
    Object.__unmanagedPtr
    Object.__internalId
    Object.Finalize()
    Object.As<T>()
    Object.NewValue(Type)
    Object.New(String)
    Object.Find<T>(Guid, Boolean)
    Object.Find(Guid, Type, Boolean)
    Object.TryFind<T>(Guid)
    Object.TryFind(Guid, Type)
    Object.Destroy(Object, Single)
    Object.DestroyNow(Object)
    Object.Destroy<T>(T, Single)
    Object.Equals(Object)
    Object.GetUnmanagedPtr(Object)
    Object.GetUnmanagedInterface(Object, Type)
    Object.FromUnmanagedPtr(IntPtr)
    Object.MapObjectID(Guid)
    Object.RemapObjectID(Guid)
    Object.GetHashCode()
    Object.ID
    Object.TypeName
    Namespace: FlaxEngine
    Assembly: FlaxEngine.CSharp.dll
    Syntax
    [ActorContextMenu("New/Physics/Joints/Distance Joint")]
    [ActorToolbox("Physics")]
    [Unmanaged]
    public class DistanceJoint : Joint, ISerializable

    Constructors

    DistanceJoint()

    Initializes a new instance of the DistanceJoint.

    Declaration
    public DistanceJoint()

    Properties

    CurrentDistance

    Gets the current distance of the joint.

    Declaration
    [Unmanaged]
    public float CurrentDistance { get; }
    Property Value
    System.Single

    Flags

    Gets or sets the joint mode flags. Controls joint behaviour.

    Declaration
    [EditorOrder(100)]
    [EditorDisplay("Joint", null)]
    [Unmanaged]
    public DistanceJointFlag Flags { get; set; }
    Property Value
    DistanceJointFlag

    MaxDistance

    Gets or sets the allowed maximum distance for the joint.

    Declaration
    [EditorOrder(120)]
    [Limit(0F, 3.40282347E+38F, 1F)]
    [EditorDisplay("Joint", null)]
    [ValueCategory]
    [Unmanaged]
    public float MaxDistance { get; set; }
    Property Value
    System.Single

    Remarks

    Used only when DistanceJointFlag.MaxDistance flag is set. The maximum distance must be no less than the minimum distance. Default: 0, Range: [0, float.MaxValue].

    MinDistance

    Gets or sets the allowed minimum distance for the joint.

    Declaration
    [EditorOrder(110)]
    [Limit(0F, 3.40282347E+38F, 1F)]
    [EditorDisplay("Joint", null)]
    [ValueCategory]
    [Unmanaged]
    public float MinDistance { get; set; }
    Property Value
    System.Single

    Remarks

    Used only when DistanceJointFlag.MinDistance flag is set. The minimum distance must be no more than the maximum distance. Default: 0, Range: [0, float.MaxValue].

    SpringParameters

    Gets or sets the spring parameters.

    Declaration
    [EditorOrder(140)]
    [EditorDisplay("Joint", null)]
    [Unmanaged]
    public SpringParameters SpringParameters { get; set; }
    Property Value
    SpringParameters

    Tolerance

    Gets or sets the error tolerance of the joint.

    Declaration
    [EditorOrder(130)]
    [Limit(0F, 3.40282347E+38F, 1F)]
    [EditorDisplay("Joint", null)]
    [Unmanaged]
    public float Tolerance { get; set; }
    Property Value
    System.Single

    Remarks

    The distance beyond the joint's [min, max] range before the joint becomes active. Default: 25, Range: [0.1, float.MaxValue].

    Extension Methods

    Extensions.ReflectiveCompare<T>(T, T)
    Extensions.DeepClone<T>(T)
    Extensions.RawClone<T>(T)

    See Also

    Joint
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat