initial upload
This commit is contained in:
BIN
Unity-Master/Assets/Plugins/RootMotion/FinalIK/_DEMOS/Limb IK/LimbIK Bend Goal.unity
(Stored with Git LFS)
Normal file
BIN
Unity-Master/Assets/Plugins/RootMotion/FinalIK/_DEMOS/Limb IK/LimbIK Bend Goal.unity
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -0,0 +1,6 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d87e6a87e0971f44a84b91db0b6258d2
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f94eb60f347b08f46a2bad57dbe60e96
|
||||
folderAsset: yes
|
||||
timeCreated: 1434626795
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1,27 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using RootMotion.FinalIK;
|
||||
|
||||
namespace RootMotion.Demos {
|
||||
|
||||
/// <summary>
|
||||
/// Bend goal for LimbIK. Attach this to a GameObject that you want the limb to bend towards.
|
||||
/// </summary>
|
||||
public class BendGoal : MonoBehaviour {
|
||||
|
||||
public LimbIK limbIK; // reference to the LimbIK component
|
||||
[Range(0f, 1f)]
|
||||
public float weight = 1f;
|
||||
|
||||
void Start() {
|
||||
Debug.Log("BendGoal is deprecated, you can now a bend goal from the custom inspector of the LimbIK component.");
|
||||
}
|
||||
|
||||
void LateUpdate () {
|
||||
if (limbIK == null) return;
|
||||
|
||||
// Set LimbIK bend goal position to myself
|
||||
limbIK.solver.SetBendGoalPosition(transform.position, weight);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,10 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f0700f2a769ec49a598a1503c9f4ae13
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user