Hi unitiers,
I am a bit new to unity, and trying to figure out this one question below, tried to spend much time searching on g00gle and other unity forms for possible solutions. But not able to get to a good one.Please help
How to trigger a Event(may be event like debug log msg) , when a Ring (Object) going through a Rod(Object)?
Thanks in advance.
buzzanthony.
Not much info to go on, it would help to be specific… At any rate, you probably want to us a trigger of some kind. If your objects both have a collider on them, you can check “isTrigger” on one of them, and when they come into contact a trigger signal is sent. You can access it in the OnTriggerEnter function, like:
function OnTriggerEnter(other : Collider)
{
//code to do whatever
Debug.Log("activated trigger");
}
if you can be more specific, maybe I could help better
Here’s what I’m envisioning:
the colliders pictured would only be used for the trigger/collision function, and should only be able to connect if the rod goes through
it allows to only mark it as correct answer , when trying to thumbs up says
“You don’t have permission to do this action.
Please Login as another user”
anyway thx.