|
Why it dsnt work? (C#) What I need to do with it - if ray from "A" script in contact with collider of object attached to "B" script, then in "A" something doing: Error: error CS1061: Type
(comments are locked)
|
|
kinda confusing the way you worded it but i guess your trying to check if a script is attached via raycast right? Vector3 fwd = transform.TransformDirection(Vector3.forward); RaycastHit hit; if(Physics.Raycast(transform.position, fwd, hit, 10)) { } *btw just wrote this on here so you may have to reorganise or reword it see the reference here... http://unity3d.com/support/documentation/ScriptReference/Physics.Raycast.html?from=RaycastHit
(comments are locked)
|
