Hello all,
I am using ProjectileMovementComponent to create a projectile. But I got an issue, if I use a box collision as a root component everything is okie. But if I use another component as root component and attach box collider to that root component. The hit event of box collision not fire.
Projectile movement will not move a scene component. Anything bound to the scene component will not move either. Thus your collision doesn’t move.
Proper projectile hierarchy should be:
Collision (parent component, aka root)
Projectile Movement Component
If you want any visual element (emitter, mesh etc) parent said component to the collision.
e.g.
Collision (parent component, aka root)
→ Static mesh component
→ Particle System
→ Audio Component
Projectile Movement Component
Keep in mind that there is a bug with the default engine, nested collisions don’t work properly.
You’ll need to make sure that the item has the collision FIRST, it can’t be “nested”.
Make a collision box, put the projectile mesh under that. Should work that way.
Sounds like you want a shotgun setup … many pellets. This is done by loop spawning ( for each ) small projectiles w/deviation per projectile spawned.