1 (edited by Az 2022-02-20 13:41:44)

Topic: Reset self-applied forces on Z-axis

Hello,

The option to reset self-applied forces on Z-Axis is missing: https://imgbox.com/J59u7vnQ

Is there another way to reset them?

(I'm using self-applied forces on a move without active frames, so it's not possible to use the reset on hit )

Share

Thumbs up Thumbs down

Re: Reset self-applied forces on Z-axis

Under Move -> General, switch "Gameplay Type" to "3D Fighter".

Like UFE? Please rate and review us on the Asset Store!
Questions about the Forum? Check out our Karma FAQ.
Don't forget to check our discord channel.

3

Re: Reset self-applied forces on Z-axis

The gameplay type is already set to 3D.

Switching from 2D add the possibility to apply forces on Z-axis, not to reset them, as you can see in this video : https://streamable.com/wl0v4h

Share

Thumbs up Thumbs down

Re: Reset self-applied forces on Z-axis

I see what you mean. You will need the Source for this one.

Under AppliedForces.cs add the following under line 11:

public bool resetPreviousLateral;

Under MoveEditorWindow.cs add the following under line 2602:

moveInfo.appliedForces[i].resetPreviousLateral = EditorGUILayout.Toggle("Reset Z Force", moveInfo.appliedForces[i].resetPreviousLateral, toggleStyle);

Finally, under ControlsScript.cs, replace line 1913 with the following:

myPhysicsScript.ResetForces(addedForce.resetPreviousHorizontal, addedForce.resetPreviousVertical, addedForce.resetPreviousLateral);

Will be added on UFE 3.

Like UFE? Please rate and review us on the Asset Store!
Questions about the Forum? Check out our Karma FAQ.
Don't forget to check our discord channel.

5 (edited by Az 2022-02-23 11:11:52)

Re: Reset self-applied forces on Z-axis

Thank you, it works perfectly ! smile

I don't know why, but the line to replace in ControlsScript.cs was line 1912 in my script, (which is the original script) not 1913.

Share

Thumbs up Thumbs down