- Home /
Raycast do not detect when distance is closer or further than the max distance
title says here is my code
if (Physics.Raycast(cameraobj.transform.position, cameraobj.transform.forward, out hit,10))
{
// do stuff
}
Answer by mani3307 · Dec 23, 2017 at 02:58 PM
@StelBlotOfficial_Leader ;;;;;It sure wont detect if it farther than the max distance because of how it is created in the first place
You are also saying it is not detecting for closer distances too ,then i think there is a problem with the other part of the code. please mention what you are trying to do to make others understand and answer your questions
Your answer
Follow this Question
Related Questions
Bullethole doesn't instantiate 1 Answer
what is the difference between raycast and getmousebuttondown in a RTS game ? 1 Answer
Learn: Survival Shooter aim offset from mouse position 1 Answer
where have i went wrong in my script (unity 5) 0 Answers
Unity 5.3.3f1: How to set an object as AssetBundle by script? 0 Answers