Hi All
I have a Pickup script attached to a simple object, this scripts make this object to rotate and oscillate, and ofcourse, if you hit it with your player, it disapears and become invisible thanks to 'renderer.enable = false'.
I need to say that this object ( a simple sphere ) have a sphere collider with 'isTrigger' option enabled, so when you hit it with player, OnTriggerEnter() is executed.
The main problem is when the renderer is disabled, collisions seems to stay up and active, and may camera's raycasts still found an spherical collider in this position. I repeat, sphere collider have 'isTrigger' enabled, but raycast still found a collider to collide with.
I tryed to disable the collider component with 'collider.active=false', but then, Pickup script is halt and no more calls to Pickup Update() function are made anymore, and ofcourse, i can't control how many time has been past to make the pickup visible again.
How can i disable this sphere collision wihtout shutting down Pickup's script ?
Thanks for your time :)