Avançar para o conteúdo principal

Pesquisa

Using raycasts to detect objects and move around them?

  • mmdev7

    You could wire the ‘hit something’ output from the raycast into the speed (or power) of the rotator. You could also plug this into an invertor and use that to power the forward mover.

    As long as the raycast is fairly short the object will only slow down and rotate when there is geometry in front of it, and when there isn’t geo in front it will move forwards.

    Hope this is helpful :) Peter

iniciar sessão para comentar.