Can I control object rotation on playing animation?
I’ve always been thinking that affected animation node does not control.
Was I wrong?
the node is playing animation now. however I was able to modify parameter by following this code.
function Update() {
transform.rotation =
Quaternion.Euler( defaultEuler.x + x, defaultEuler.y + y, defaultEuler.z + z );
}
I tried made a same situation by using easy object(cube premitive object).
But object does not move. Parameter follows animation.
I’m not sure this cause.
and, Object that I can control rotation on playing animation does not move by using this code.
function Update()
{
transform.rotation = Quaternion.Slerp(
transform.rotation,
Quaternion.Euler( defaultEuler.x + x, defaultEuler.y + y, defaultEuler.z + z),
Time.deltaTime * chaseCameraSpeed );
}
Object state that shaking slightly(Brr). I’m not sure really…
Can I control object that affected by playing animation?