void Update ()
{
// We are going to read the input every frame
Vector3 vNewInput = new Vector3(Input.GetAxis("Horizontal_R"), Input.GetAxis("Vertical_R"), 0.0f);
// Only do work if meaningful
if(vNewInput.sqrMagnitude < 0.1f)
{
return;
}
I am trying to get a rotating turret from my joystick and I saw that if I comment out that piece of code the turret pops back to position which is what I am missing in playmaker because I got all the other actions working except this one. I don't know how to make it stop in place and not rotate back to position.