Hi.
I wrote a script for detach gun from the car. I want after detach gun, hidden it when falling. I can solve this Problem with two issue:
1. No attach gun (as rigidbody) to terrain that after collide with terrain, Fall to it and hidden. but with this work I have a Problem, when more than 7 times rigidbody fall to terrain, stay in air and no fall to terrain.
2. I can use enventoncontact object for monitor rigidbody and Terrain and after collide together use below script for hidden rigidbody.
Please Guide Me.
Thanks A Lot
I wrote a script for detach gun from the car. I want after detach gun, hidden it when falling. I can solve this Problem with two issue:
1. No attach gun (as rigidbody) to terrain that after collide with terrain, Fall to it and hidden. but with this work I have a Problem, when more than 7 times rigidbody fall to terrain, stay in air and no fall to terrain.
2. I can use enventoncontact object for monitor rigidbody and Terrain and after collide together use below script for hidden rigidbody.
Code: [Select]
if (IN_0 > 0) iObjectHide(OBJ_22);
but also with this way have a Problem, rigidbody is hide, but contact with terrain is always is 1 and make script work once.Please Guide Me.
Thanks A Lot