Skip to content

Instantly share code, notes, and snippets.

View R3X-G1L6AME5H's full-sized avatar
🍌
On the verge of greatness

Nemo R3X-G1L6AME5H

🍌
On the verge of greatness
View GitHub Profile
@mstevenson
mstevenson / ConfigurableJointExtensions.cs
Created October 24, 2014 07:14
Extension methods for working with Configurable Joints for Unity
using UnityEngine;
public static class ConfigurableJointExtensions
{
/// <summary>
/// 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.
/// </summary>
public static void SetTargetRotationLocal (this ConfigurableJoint joint, Quaternion targetLocalRotation, Quaternion startLocalRotation)
{