steve54321
New member
We are using a floating/moving origin approach whenever the character gets farther away from the origin. On reposition of the origin, we use CC.SetPosition(<newpos>), but this brings the character to an abrupt halt (f.e. while running or falling).
How can we keep the velocity of the CC? I doesn't seem to work to save the CC.Velocity value, do a CC.SetPosition() and reassign the velocity as it seems to be ignored. Using CC.AddForce() works but I don't know what I need to pass as force parameter to keep the exact speed/velocity as before the reposition.
How can we keep the velocity of the CC? I doesn't seem to work to save the CC.Velocity value, do a CC.SetPosition() and reassign the velocity as it seems to be ignored. Using CC.AddForce() works but I don't know what I need to pass as force parameter to keep the exact speed/velocity as before the reposition.