My hazards are pushing back the purple enemy !

Hi have been working on this problem here @01Hours:06 minutes

can you tell me what could be the problem.

Ummm… well… I can’t tell you what could be the problem, because I don’t know, you didn’t tell us. I don’t really want to watch this entire video to figure out what exactly is going on, and what you mean by “My hazards are pushing back the purple enemy” - and I simply see a guy coding something at 11 minutes into that video.

You are definitely going to have to tell us more, tell us specifically what you have done (followed this tutorial video?) and where things went wrong (I assume near the code he is writing at 11 minutes?) so that we can help you.

2 Likes

Hi sorry my mistake i had to write at 01 hour : 06 minutes the thing is that my hazards had to pass the enemy ship (blue ship) but when the hazards(the rock) comes from back it hits the enemy ship. I just want to pass the hazards through enemy ship but it wont as they both have rigid body component attach to it. Do we need to make some changes in the code or it can be done through inspector as well ?

Consider making one a trigger, or using layer based collision detection.

1 Like

Thanks, I didn’t knew that selecting is trigger takes out the physical aspects of rigidbody out of the object. thanks guys