I require an easy and efficient way to detect whether or not objects are in a zone for a Zero-G Space game using 3D but with motion limited to 2D ala Space War/Star Control.
This would be used to implement such things as:
- Planetary Gravity: There can be multiple Planetary objects exerting gravity on any object within its gravitational field (a sphere). When an object is detected inside a zone gravity force is applied to it according to the distance between object and Planet
- Explosion: Basically the reverse of gravity. If an object is within a certain spherical range of an exploding missile or ship, repulsion force is applied to it according to the distance between object and explosion point.
I'm already using Fulcrum for Physics, so I'm reluctant to add Sparky's Collision because Fulcrum could already handle the other contact data such as actual physical interactions (ship hitting ship, ship hitting planet, ship hitting bullets, etc). However, I don't yet know of a way I can make an object that is pass-through so it won't affect objects colliding with it, and yet reports it as a contact so I can handle the "collision" (I guess intersection is the right term here).
Any advice?