Class ConfigurableJointExtensions
Inheritance
System.Object
ConfigurableJointExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: HurricaneVR.Framework.Core.Utils
Assembly: HurricaneVR.Framework.dll
Syntax
public static class ConfigurableJointExtensions
Methods
| Improve this Doc View SourceSetTargetRotation(ConfigurableJoint, Quaternion, Quaternion)
Sets a joint's targetRotation to match a given world rotation. The joint transform's world rotation must be cached on Start and passed into this method.
Declaration
public static void SetTargetRotation(this ConfigurableJoint joint, Quaternion targetWorldRotation, Quaternion startWorldRotation)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityEngine.ConfigurableJoint | joint | |
| UnityEngine.Quaternion | targetWorldRotation | |
| UnityEngine.Quaternion | startWorldRotation |
SetTargetRotationLocal(ConfigurableJoint, Quaternion, Quaternion)
Sets a joint's targetRotation to match a given local rotation. The joint transform's local rotation must be cached on Start and passed into this method.
Declaration
public static void SetTargetRotationLocal(this ConfigurableJoint joint, Quaternion targetLocalRotation, Quaternion startLocalRotation)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityEngine.ConfigurableJoint | joint | |
| UnityEngine.Quaternion | targetLocalRotation | |
| UnityEngine.Quaternion | startLocalRotation |