#Can anyone help me out with basic raycasting please
1 messages · Page 1 of 1 (latest)
what about it is not working?
Im not getting any response from the ray cast that was shot out
Ive changed it to this, and supposedly, if the ray hits omething it should return true
but its only resulting as false
then the ray is not hitting anything. Did you try using Debug.DrawRay so you can see the ray you're actually using?
does the objects need to have a ridged body to be detected
it needs a collider
lol np
that's what #💻┃code-beginner is for
in general:
Anything involving the physics system needs a collider
anything involving the physics system and movement needs a rigidbody as well