Search Results for

    Show / Hide Table of Contents

    Class D6Joint

    Physics joint that is the most customizable type of joint. This joint type can be used to create all other built-in joint types, and to design your own custom ones, but is less intuitive to use. Allows a specification of a linear constraint (for example for a slider), twist constraint (rotating around X) and swing constraint (rotating around Y and Z). It also allows you to constrain limits to only specific axes or completely lock specific axes.

    Inheritance
    System.Object
    Object
    SceneObject
    Actor
    Joint
    D6Joint
    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/D6 Joint")]
    [ActorToolbox("Physics")]
    [Unmanaged]
    public class D6Joint : Joint, ISerializable

    Constructors

    D6Joint()

    Initializes a new instance of the D6Joint.

    Declaration
    public D6Joint()

    Properties

    CurrentSwingY

    Gets the current swing angle of the joint from the Y axis.

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

    CurrentSwingZ

    Gets the current swing angle of the joint from the Z axis.

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

    CurrentTwist

    Gets the twist angle of the joint (in the range (-2Pi, 2Pi]).

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

    LimitLinear

    Determines the linear limit used for constraining translation degrees of freedom.

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

    LimitSwing

    Determines the cone limit used for constraining the swing (rotation around Y and Z) degree of freedom.

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

    LimitTwist

    Determines the angular limit used for constraining the twist (rotation around X) degree of freedom.

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

    Methods

    GetDrive(D6JointDriveType)

    Gets the drive parameters for the specified drive type.

    Declaration
    [Unmanaged]
    public D6JointDrive GetDrive(D6JointDriveType index)
    Parameters
    D6JointDriveType index

    The type of drive being specified.

    Returns
    D6JointDrive

    The value.

    GetMotion(D6JointAxis)

    Gets the motion type around the specified axis.

    Declaration
    [Unmanaged]
    public D6JointMotion GetMotion(D6JointAxis axis)
    Parameters
    D6JointAxis axis

    The axis the degree of freedom around which the motion type is specified.

    Returns
    D6JointMotion

    The value.

    Remarks

    Each axis may independently specify that the degree of freedom is locked (blocking relative movement along or around this axis), limited by the corresponding limit, or free.

    SetDrive(D6JointDriveType, D6JointDrive)

    Sets the drive parameters for the specified drive type.

    Declaration
    [Unmanaged]
    public void SetDrive(D6JointDriveType index, D6JointDrive value)
    Parameters
    D6JointDriveType index

    The type of drive being specified.

    D6JointDrive value

    The value.

    SetMotion(D6JointAxis, D6JointMotion)

    Sets the motion type around the specified axis.

    Declaration
    [Unmanaged]
    public void SetMotion(D6JointAxis axis, D6JointMotion value)
    Parameters
    D6JointAxis axis

    The axis the degree of freedom around which the motion type is specified.

    D6JointMotion value

    The value.

    Remarks

    Each axis may independently specify that the degree of freedom is locked (blocking relative movement along or around this axis), limited by the corresponding limit, or free.

    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