Question by
ButtonDownBobby · Jul 28, 2018 at 04:39 AM ·
rotationrotatearound
Rotatearound and face the direction of movement
I'd like to use the "transform.Rotatearound" and face the direction of movement.
_dir = new Vector3(Random.Range(-1, 1), Random.Range(-1, 1), Random.Range(-1, 1));
transform.RotateAround(target.transform.position, _dir, CurrSpeed * Time.deltaTime);
Comment