{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Class JointComponentExtensions | Unity Physics | 1.1.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class JointComponentExtensions

    Extension methods for working with PhysicsJoint.

    Inheritance
    object
    JointComponentExtensions
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Physics.Extensions
    Assembly: solution.dll
    Syntax
    public static class JointComponentExtensions

    Methods

    Name Description
    GetLimitedDOFAxes(in PhysicsJoint, out bool3, out bool3)

    Gets the constrained degrees of freedom of a PhysicsJoint created using CreateLimitedDOF(RigidTransform, bool3, bool3) .

    GetLimitedDistanceRange(in PhysicsJoint)

    Gets the range of motion for a PhysicsJoint created using CreateLimitedDistance(float3, float3, FloatRange) .

    GetLimitedHingeRange(in PhysicsJoint)

    Gets the range of motion for a PhysicsJoint created using CreateLimitedHinge(BodyFrame, BodyFrame, FloatRange) .

    GetPrismaticRange(in PhysicsJoint)

    Gets the range of motion for a PhysicsJoint created using CreatePrismatic(BodyFrame, BodyFrame, FloatRange) .

    GetRagdollPerpendicularConeRange(in PhysicsJoint)

    Gets the range of motion for a ragdoll perpendicular cone PhysicsJoint created using CreateRagdoll(BodyFrame, BodyFrame, float, FloatRange, FloatRange, out PhysicsJoint, out PhysicsJoint).

    GetRagdollPrimaryConeAndTwistRange(in PhysicsJoint, out float, out FloatRange)

    Gets the range of motion for a ragdoll primary cone PhysicsJoint created using CreateRagdoll(BodyFrame, BodyFrame, float, FloatRange, FloatRange, out PhysicsJoint, out PhysicsJoint) .

    SetLimitedDistanceRange(ref PhysicsJoint, FloatRange)

    Applies the specified range of motion to a PhysicsJoint created using CreateLimitedDistance(float3, float3, FloatRange) .

    SetLimitedHingeRange(ref PhysicsJoint, FloatRange)

    Applies the specified range of motion to a PhysicsJoint created using CreateLimitedHinge(BodyFrame, BodyFrame, FloatRange) .

    SetPrismaticRange(ref PhysicsJoint, FloatRange)

    Applies the specified range of motion to a PhysicsJoint created using CreatePrismatic(BodyFrame, BodyFrame, FloatRange) .

    SetRagdollPerpendicularConeRange(ref PhysicsJoint, FloatRange)

    Applies the specified range of motion to a ragdoll perpendicular cone PhysicsJoint created using CreateRagdoll(BodyFrame, BodyFrame, float, FloatRange, FloatRange, out PhysicsJoint, out PhysicsJoint).

    SetRagdollPrimaryConeAndTwistRange(ref PhysicsJoint, float, FloatRange)

    Applies the specified range of motion to a ragdoll primary cone PhysicsJoint created using CreateRagdoll(BodyFrame, BodyFrame, float, FloatRange, FloatRange, out PhysicsJoint, out PhysicsJoint).

    setLimitedDOFAxes(ref PhysicsJoint, bool3, bool3)

    Applies the constrained degrees of freedom to a PhysicsJoint created using CreateLimitedDOF(RigidTransform, bool3, bool3) .

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)