Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Stop of rotation
#2
You know, I kind of did it. I'm not sure if this is working correctly. But it seems to be working. Is it right?

Code:
if (Input.GetKey(KeyCode.Space))
        {
            for (int i = 0; i < actor.solverIndices.Length; ++i)
            {
                int solverIndex = actor.solverIndices[i];
                actor.solver.velocities[solverIndex] = actor.solver.velocities[solverIndex] + (Vector4.MoveTowards(actor.solver.positions[solverIndex], startingRot[i], 100f));
            }
        }
Reply


Messages In This Thread
Stop of rotation - by mrsloom23 - 30-07-2022, 03:48 AM
RE: Stop of rotation - by mrsloom23 - 30-07-2022, 02:33 PM
RE: Stop of rotation - by josemendez - 01-08-2022, 07:48 AM