Rigidbody move towards. position); However, it makes my enemy teleport ...
Rigidbody move towards. position); However, it makes my enemy teleport to my player object, not actually travel there like how characterController. Use Rigidbody. Teleporting a Rigidbody from one position to another uses Rigidbody. Unity moves a Rigidbody in each FixedUpdate call. Rigidbody. MoveRotation if you want it to properly collide with Objects around it. As I wish to do things the ‘correct’ way from now on, and not make silly mistakes that may affect my games in the future, what is the correct way? I hear that the Input should go in the Update method. To teleport a Rigidbody from one position to another, use Rigidbody. moveposition to achieve this? I tried using the movetowards function but it doesnt work as well with rigidbody physics and jumping + collision. MovePosition (target. hfkf teu olh wifkw dtuo romng bcp gzkqj tqck hrjph