Topic: Rotation Error after K.O.
Hi.
We are using some (overhead) throw-moves for each character and had some troubles with the down- and standup-animations, because during the throw the characters change their positions.
After K.O. the downed character doesn't trigger the standup-animation and stays on the ground. So far so good. But after some seconds the character rotates 180 degress around the Y-axis (I think to correct his rotation).
So I looked for a way to disable rotation-correction after the K.O.
It's very simple:
Open ControlScript.cs and find this code (around line 200):
public void InvertRotation(){
standardYRotation = -standardYRotation;
}
Change to this:
public void InvertRotation(){
if (isDead == true) return; //** do not rotate after K.O.
standardYRotation = -standardYRotation;
}
I hope its helpful for some of you
best regards,
shubi