Hi everyone, me again. I’m trying to create a bullet hell minigame and I’m working on the player projectiles, specifically on the projectiles’ collisions. I’m trying to create a projectile collision with no forces caused, this means the projectile hits the target, the projectile disappears and the enemy takes damage. I’m not sure how to create these collisions between the enemy meshes and the projectiles, both of them are imported meshes. Here is what I tried so far:
-
Assign
enemyMesh.checkCollisions = true
, where “enemyMesh” is the__root__
mesh of my enemy, doesn’t work. The collision is not detected. -
Using Havok: Assigning aggregates to both, enemy and projectile, works only when both bodies have mass, the problem here is the projectile travels using
projectileMesh.physicsBody?.setLinearVelocity
, this ends up causing a force on the enemy, moving it. (If you have a better suggestion to shoot the projectile, I’d love to hear it too)
I know is a lot, so feel free to take a look at the repo: GitHub - ElHurta/hacking-automata.
Thanks!