Yes 'handle' is a pointer to itself and collision is the pointer to the entity that it collided with.
O.k.
I have
1.Bullet collisions with ships
2.
Ship collision with ship
The reason why I used types:
1.
I need to know which ship fired the bullet so I can tell which type of bullet was used
2.
I need to give the ship that got hit a direction to go.The opposite direction to the other ship.
Is there a better way?
(everything works fine, it is just a bit slow)
O.k.
I have
1.Bullet collisions with ships
If red\bullet_collision=blue\handle blue\shield=blue\shield-10 endif
2.
Ship collision with ship
If red\ship_collision=blue\handle blue\translatex=red entityyaw(red\handle) endif
The reason why I used types:
1.
I need to know which ship fired the bullet so I can tell which type of bullet was used
2.
I need to give the ship that got hit a direction to go.The opposite direction to the other ship.
Is there a better way?
(everything works fine, it is just a bit slow)