Game Development Community

Projectiles Not showing up when first shot ...

by Trevor "PointDestruction" · in Technical Issues · 11/18/2002 (6:55 pm) · 2 replies

This question is almost a little hard to explain but heres my best:

we're currently having a problem. When you shoot, the projectile seems to create itself NOT at the muzzle or near the gun, but a little before it.

We was hoping to have the bullet start at your muzzle, and visually from then on see it fly off.

To our knowledge, this is messing up the oncollision stuff, in which it doesnt know what typemask the projectile hit. We made some code that if the bullet hits terrain, choose this explosion data instead, interior, do this one instead, etc.

If you dont see the bullet/particles from the projectile before it hits something, it returns a "0" as the typemask ...

#1
01/21/2008 (9:54 am)
I am having a similar issue - the projectile is creating itself above the gun, and sometimes above and behind - depending how fast I fire. The muzzlepoint is correct, so I'm a bit confused
#2
01/21/2008 (6:56 pm)
What shape is your projectile, and where is it's bounding box pivot? When a projectile spawns from a weapon, its bounds pivot is aligned with the muzzlepoint (or if your weapon doens't have a muzzle point, the weapon's bounds pivot).

Try moving the projectile pivot to the shapes center of gravity and see if that helps.