Question by
SheharyarAbbas · Nov 09, 2015 at 01:08 PM ·
rigidbodyraycastfpsbullethole
How can I make Instantiated GameObjects stick with RigidBodies even if they change position or fall over?
I've started work on a new FPS, and I recently implemented bullet holes. When I shoot, a RayCast hit Instantiates a GameObject with a bullet hole texture on it, but when I shoot RigidBodies and they fall over, the bullet hole texture is left floating in the air, is there a way to make the bullet hole stick to an object even if it moves or falls over.
Comment
Best Answer
Answer by Owen-Reynolds · Nov 09, 2015 at 03:54 PM
Child the "holes" to the object. That's a common Q, so lots of places to read about how to turn something into your parent, and what that does.