public void deepInit(Animation anim) { ms = RagdollCliper.createState(anim); ms.blendMode = AnimationBlendMode.Blend; ms.speed = 1.0f; }
/// <summary> /// /// </summary> /// <param name="act"></param> public void deepInit(SkinnedMeshRender smr) { act = smr.GetComponentInParent <_Action3>(); tfBase = smr.bones[0]; rbs = tfBase.GetComponentsInChildren <Rigidbody>(); colliders = tfBase.GetComponentsInChildren <Collider>(); msClipPose = RagdollCliper.createState(act.tfBody.GetComponent <Animation>()); setMaxMoveForDepenetration(rbs); switchMode(false); }
/* * void switchObservedCenter() * {Debug.Log( this.tfObservedCenter.name ); * * var pre = act.tfObservedCenter; * * act.tfObservedCenter = this.tfObservedCenter; * * this.tfObservedCenter = pre; * * } */ public void setup(PlayerAction3 action) { act = action; smr = act.GetComponentInChildren <SkinnedMeshRender>(); setupRigidbodys(smr.bones); tfRagdollBase.parent = null; tfRagdollBase.gameObject.SetActive(false); tfRagdollBase.name = "base"; // msRagdoll = RagdollCliper.createState(act.tfBody.GetComponent <Animation>()); // msRagdoll.blendMode = AnimationBlendMode.Blend; msRagdoll.speed = 0.0f; }
public void deepInit(Animation anim) { ms = RagdollCliper.createState(anim); //ms.speed = 0.0f; }