Game Development Community

Turret Code Crossbow Bug

by Demolishun · in Torque Game Engine · 10/09/2005 (9:41 pm) · 5 replies

I have been playing with the turret code and have some kind o crossbow bug.

Here I am hanging out with the turrets the one on the left giving me the bug:
www.demolishun.com/images/turrets_crossbow_bug.jpg
The turret on the vehicle is the same turret just scaled smaller. The turret part is the top part of the tower on the left. The tower portion is actually just a staticShape with a mount point for the turret. This bug also manifests itself on the stock turret with the turret code (not shown). In addition I have seen crossbows spawn from no where and mount into a vehicle mount point. All this code is stock 1.3 except the turret code. I was seeing this bug before I put in the turret code.

Thanks,
Frank

Edit:
Okay, I forgot the code I wrote to create a different kind of hover vehicle. The tank in the picture. However, I cannot believe that code would cause that.

About the author

I love programming, I love programming things that go click, whirr, boom. For organized T3D Links visit: http://demolishun.com/?page_id=67


#1
10/09/2005 (11:54 pm)
Search your project .cs files for any reference to crossbow.dts, it might give you a better place to start looking.
#2
10/10/2005 (12:01 am)
There is a problem with the default angle code in regards to pitch, IIRC.
#3
10/10/2005 (9:30 pm)
Midhir,
Thanks, I will look at it.

Mike,
I am confused about the default angle code. What does that mean?
#4
10/11/2005 (6:03 pm)
Http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=8618


I think that is what Mike is talking about.
#5
10/11/2005 (6:52 pm)
Thanks for the math fix.

I will look into the crossbow stuff and see what I find.