- Home /
How to make work a collision when is invisible?
Im trying to make visible an invisible object so when it's trigger with this object the other object it make it visible but the problem is that it dont works beacuse the object is invisble.
What I want to ask is that if there is a way to consider the invisible object(example: collider,rigidbody,mesh,character controller,etc...) so it can work like that.
Please someone help me.
@unknown (google): Please stop flagging your posts as "Require moderator Attention" just because you want an answer! This is not what flagging posts is for!
Answer by Ostagar · Oct 26, 2010 at 08:18 AM
Whether the mesh renderer is enabled, disabled, or removed completely has no bearing on how much space an object takes up in the game world nor how it physically behaves.
Answer by diabloroxx · Nov 29, 2010 at 11:54 PM
Try this out:
Void Awake() { transform.renderer.enabled = false; }
void OnCollisionEnter ( Collision TestCollision) { transform.renderer.enabled = true; }
Answer by Eric5h5 · Oct 26, 2010 at 12:47 AM
Colliders aren't visible anyway, so it doesn't matter if an object's renderer is active or not, or if it even has one.
no,Im the deactivate children not the renderer
Your answer
Follow this Question
Related Questions
Help with collision detection with specific colliders 1 Answer
Collision problem in C# 4 Answers
Problem with the collider(I think) 0 Answers
Using shadows as Triggers? 1 Answer
How to restart scene with trigger? 1 Answer