In 3 d collision and trigger and realize object in the scene shown in "NGUI" is two objects collide or triggered such results
CodePudding user response:
This question is fuzzy, the first thing you 3 d model of collision detection in the scene will be? Then what do you want displayed on the NGUI, such as the collision of two objects on the UI to display what kind of results? Moreover, Collision and trigger Collision detection OnColliderEnter (Collision other), trigger detection OnTriggerEnter (starts other), detection methods, to simple said that two objects are a touch trigger or Collision, that can only see if you have to check IsTrigger starts on the modelCodePudding user response:
First you need to clear a concept about the condition of collision detection is two objects have a trigger, a moving object need to add the rigid-bodyComponents with the later, you will need to hang the script in to the moving object in the script call OnColliderEnter (Collision other) this method
Other contain all the information you collision,
You want to send this message to the user interface (UI)
Then you should have nothing but a textlbl on UI to display your information on the collision can be, and 303697518 micro I can not understand
CodePudding user response:
Collision first-hand information must be in OnColliderEnter callback, the information you want can be obtained in the callback method, shown in the UI, you need to pass the value in the past