Game Development Community

Bullet ejection point

by ZeMag · in Torque Game Engine · 05/14/2007 (2:11 am) · 4 replies

Hi,

am new to TGE, and am trying to mod the start.fps, but something is bugging me.

Is there a way to make the bullet come out from the gun?
I ask this because when I slow down the bullet, I notice that sometimes it is spawning far from the gun (on the right direction, and with correct collision detection).

Is not a big problem, but if I try to make a gun with a long last bullet particle, I get some wierd graphics (with the particles sometimes starting inside the gun, other times 10-20 units ahead of the gun).

Also, is there a way to make a gun look like is shooting a continuous beam?
(particles that 'drop' from the bullet seamed the right answer, but I seam to have to turn off the wind to make them work the way I wanted to)

Thanks in advance.

#1
05/14/2007 (11:07 am)
I don't know about the continuous beam thing, but the others, you just need to add a node to your weapon, called "muzzlePoint". It can be an empty node, or whatever your modelling program calls empty nodes.

Gary (-;
#3
05/15/2007 (1:12 am)
I must be doing something wrong. I have the muzzlePoint on the gun but still have the same problem. Also, the 'problem' seams to exist already on the crossbow that cames in the demo.

May just be some kind of lag (if I slow down the projectile from 100 to 10, it comes out from the right point).

Thanks for the post Gary, and for the link Scott.
#4
05/15/2007 (1:17 am)
Projectiles are supposed to eject from the muzzle point however they do not. Instead, they spawn from the eyePoint and always have, it's a bug in the engine. Also, there's a problem with particles that are attached to a projectile in that they lag behind. There's a fix for that in the form of a resource, do a search.