7 more posts in this thread. [Missing image file: unity-icon-big.jpg]
Anyone able to help me with a unity problem?
I'm trying to instantiate a prefab of several small asteroids after a big asteroid has been hit, so it 'breaks up' into smaller chunks.
In the script for the big asteroid I have it set up so when the bullet hits the big asteroid:
where debris is: var debris : transform
In unity I have an empty game object as the parent of 7 smaller asteroid prefabs, which I have dragged into the debris variable in the inspector, but when I shoot the big asteroid, the 'debris' doesn't appear.
Anyone know how to solve this, or know a better way to make a few smaller asteroids appear once a big one has been hit?
I tried it before, making one of the smaller asteroids the parent instead of an empty object, and it worked, but when I shot the one smaller asteroid which was the parent, all the asteroids were destroyed too (the child asteroids all seemed to inherit the parent script)
I've been searching all day for help with this but no luck. Thanks in advance
3 more posts in this thread. [Missing image file: mossberg-50452-shotgun.jpg]
Okay, apologies for my ignorance, I'm only about 2 weeks into 3d modelling, but I'm just wondering, around the 56:55 mark, what hotkey is he pressing to add polygons like that?
I'm working on adding a gun to a scene for an assignment, and this way sees fairly quick.
Pic unrelated, thanks in advance!