- Home /
Question by
Boten · Sep 09, 2020 at 07:29 AM ·
raycast3dmobilenavmeshagentraycasting
nav mesh agent stop ScreenPointToRay after a while
Hi I have a basic 3d gameobject with a nav mesh agent, a collider and also a child gameobject that have a line renderer.
I want to draw a line from that game object whenever the user touches the gameobject and draw a line from that game object ( I detect the collision using a gamemanager as many game object like that are expected and update the gameobject script which have a handle for the line renderer).
This is working fine as long and the Nav mesh agent is disable, once enable the ScreenPointToRay stops working after a few successful collisions and don't find my gameobject anymore.
Any ideas ?
FYI this is a mobile 3D game
Comment