1 (edited by shubi 2016-10-22 09:17:52)

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 smile

best regards,
shubi

shubi's Website

Share

Thumbs up +4 Thumbs down