This project has opposing swarms pass through each other and bullets will pass through each other but enemy bullets will collide with enemy ships.
https://github.com/togfoxy/SpaceFleetBattles
Sensor but with collision
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Sensor but with collision
Last project:
https://togfox.itch.io/hwarang
A card game that brings sword fighting to life.
Current project:
Turn-based PBEM horse stable (racing) management sim: https://togfox.itch.io/horse-stable-manager
https://discord.gg/HeHgwE5nsZ
https://togfox.itch.io/hwarang
A card game that brings sword fighting to life.
Current project:
Turn-based PBEM horse stable (racing) management sim: https://togfox.itch.io/horse-stable-manager
https://discord.gg/HeHgwE5nsZ
Re: Sensor but with collision
You want two different behaviors, so:
Option 1: Add two fixtures to your players and enemies—one "solid", one sensor.
Option 2: Add three lines or so to your preSolve function to check the object contacted and ignore the contact if necessary. (But this would make it more difficult to tell when the collision begins and ends, if you need that.)
Option 1: Add two fixtures to your players and enemies—one "solid", one sensor.
Option 2: Add three lines or so to your preSolve function to check the object contacted and ignore the contact if necessary. (But this would make it more difficult to tell when the collision begins and ends, if you need that.)
Who is online
Users browsing this forum: Bing [Bot] and 8 guests