I got pre-made projectiles from the Unity's asset store and couldn't figure out a way to make them work my intended way.
The projectiles have colliders (not triggers), rigidbody and a script that moves them by .velocity. It detects a collision using OnCollisionEnter
, making them push objects that have rigidbodies (behavior not wanted).
I could indeed use OnTriggerEnter
, but the projectile spawns particles using the ContactPoint
from the OnCollisionEnter
method that OnTriggerEnter
doesn't have access to. I tried to simulate this ContactPoint
using raycasts, but no luck. Could rewrite the code from scratch, but only if there's no other way...
There's this video where the guy has the same setup as my projectile, rigidbody and collider, yet, the projectile doesn't push the other object, but he doesn't go deeper on its behavior.
Any ideas?