jister
1
hey any idea why this won’t work? using mecanim…
transform.position +=new Vector3(animator.deltaPosition.x, animator.deltaPosition.y*animator.GetFloat("JumpHeight"),animator.deltaPosition.z);
where JumpHeight is a curve in my jump animation…
also tried with root position and match target…
jister
2
strange but putting it like this seems to work? can anyone explain me why? whats the difference?
Vector3 position= new Vector3(animator.deltaPosition.x, animator.deltaPosition.y+animator.GetFloat("JumpHeight"),animator.deltaPosition.z);
thisTransform.position +=position;