Game Development Community

Non-Exploding Projectiles?(2)

by Marcus L · in Torque Game Engine Advanced · 06/12/2009 (6:36 am) · 1 replies

I changed the muzzleVelocity and the areaImpulse in my projectile datablock to make it more realistic, but if i shoot at the wall or the ground close to me i get damaged.

Any one knows what to change to fix this?

#1
06/12/2009 (10:36 am)
These fields affect the damage settings in your projectile:

  • directDamage - how much damage getting shot causes
  • radiusDamage - max amount of damage an explosion can give you
  • damageRadius - the radius size to calculate the impulse and radiusDamage
  • areaImpulse - how much "kickback" an explosion will cause

  • If you don't want radius or exposive damage then set it to 0 as well as setting the damageRadius to 0.

    See your projectile onCollision() callback to see how the different damage functions are called with those settings.