x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How I detect collision between two actors (not player)

I have been trying to create a top down 2d space shooter and so far it has been going really well. I have stars and asteroids traveling down the screen, the players is able to move and shoot but I'm having issues when it comes to collision detection.

To simplify things, imagine I have 3 assets; a player spaceship, an enemy spaceship and a projectile.

alt text (right click and click view image if it is too small on your screen)

My player is currently able to collide with both the enemy ship and the projectile but I cannot for the life of me make the enemy spaceship and the projectile detect each other.

My reasons behind using a 3d collision box is a little complicated but it is needed for future game plans. I absolutely 100% sure that the collision boxes are definitely passing straight through each other.

The enemy spaceship is currently stationary and the projectile isn't traveling at ridiculous speeds (it's actually a pretty slow rocket).

I have used "BlockAll" for testing purposes, this will change later (I have tried many other collision presets but none seem to make a difference - as they currently effect the player I believe that they should effect each other too).

I am also pretty new to this engine so please try to explain any suggestions thoroughly.

I would greatly appreciate any help... I have been troubleshooting and researching solutions for the last 5 hours but I am completely at a loss here.

Product Version: Not Selected
Tags:
untitled-2.jpg (244.3 kB)
more ▼

asked Sep 20 '14 at 05:41 AM in Everything Else

avatar image

Bakla Firoz
26 4 6 6

(comments are locked)
10|2000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question