Battle Talent  V11
All Classes Namespaces Functions Variables Enumerations Properties
Static Public Member Functions | List of all members
ConfigurableJointExtensions Class Reference

Static Public Member Functions

static void SetTargetRotationLocal (this ConfigurableJoint joint, Quaternion targetLocalRotation, Quaternion startLocalRotation)
 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. More...
 
static void SetTargetRotation (this ConfigurableJoint joint, Quaternion targetWorldRotation, Quaternion startWorldRotation)
 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. More...
 

Member Function Documentation

◆ SetTargetRotation()

static void ConfigurableJointExtensions.SetTargetRotation ( this ConfigurableJoint  joint,
Quaternion  targetWorldRotation,
Quaternion  startWorldRotation 
)
static

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.

◆ SetTargetRotationLocal()

static void ConfigurableJointExtensions.SetTargetRotationLocal ( this ConfigurableJoint  joint,
Quaternion  targetLocalRotation,
Quaternion  startLocalRotation 
)
static

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.