I managed to get parameter in animator for turn float.
I am now trying to use character.motionControl = MotionControl.Manual; to stop motion of character when i want. But it seems that this stops character completely. What i need is that characte…
Body angle set in script (BodyAngle_Snapped). It happens exactly on start of rotation, but not always. I am trying to determine what combination of BodyAngle and BodyAngle_Snapped causes problem.
I was doing more testing of a script and i noticed that from time to time character starts to rotate in opposite direction slightly, than it starts to rotate where it should.It is like it is doing angle correction from the start but in opposite dire…
Ah, ok it seems I missed that...
Again thank you very much for helping me.
Only one more question: Is it possible to make character start moving when BodyAngle_Snapped get final value (some 45 angle) and not when turn float becomes 0.
I am doing more testing but I think that is it.Thank you very much!
I noticed some problem that has nothing to do with your script.Turn float is acting as expected when character starts to move. When rotation starts, turn float is 1 or -1 when char…
This is how I think parameter should work:
When character starts to rotate parameter is changing value (it doesnt snap), when rotation ends atsome value, it snaps to the nearest 45 angle. But if it would be possible to make this snap not be inst…
I managed to make script work. In Mecanim parameters for Body angle float I have put BodyAngle and in animator I have put BodyAngle_Snapped parameter. But BodyAngle_Snapped behaves the same way as when I turn on Angle Snaping in Mecanim. Or i d…
Hi,I have updated AC an now I am trying to make script that you provided to work, but have some trouble.I did all steps in your post.
In Angle Snap component i added My character and My animator but now i dont know how to get parameter in animator. …
So at some moment speed is 0 and character is moving? That should not be happening.
Regarding exit time i had isues when exit time was untick but transition offset was some value other than 0. But you have all that ok, so transition should be instan…
Hi,check transitions between idle and walk. Transition should be instant. In transition settings Has exit time should be unchecked, Exit time set to 1,Transition duration set to 0, Transition offset set to 0. Also check conditions , maybe some condi…
Great, thanks!So when update is out than script will work and i will get new parameter? Sorry i have no experience with scripting, where exactly should I put this script?
So this is new float angle paramater that is changing between 45 angles? And old float angle parameter determine at what angle character is actualy going? If its like that, than that is exactly what I want (I can live with gliding). I hope that snap…
Would it be possible to limit the movement of a character so that the rotation always ends with a discrete angle. For example, movement to be like queen moves in chess.So that faceAngle float would always end in some of this numbers:0,45,90,135..…