i want to be able to have clickable objects attached to a rigid body that is rotated around to revial different clickable objects.
so far anything with raycasting always shows up as true. no matter what.
i want to be able to have clickable objects attached to a rigid body that is rotated around to revial different clickable objects.
so far anything with raycasting always shows up as true. no matter what.
It’s possible that you’re better off using OnMouseDown
rather than raycasting. Raycasts usually ‘stop’ at the first obstacle, or just click through all (and return all hits).
OnMouseDown on the other hand will only activate the object with which it collides, which is usually the one facing the camera. **doesn’t work on iphone