Collision for characters larger than 2 units
by a.johnson465 · in Torque Game Engine · 11/19/2009 (7:20 pm) · 5 replies
My group and I have the character model for our boss character that is 10 torque units tall. Now as far as we can tell the hitbox in Torque is only about the size of the player. Is this a built in thing in Torque? Does anyone have away to make a hitbox fit a character that is larger than 2 units?
Thanks.
Thanks.
About the author
#2
I'll try looking at that.
Thanks
11/21/2009 (5:24 pm)
That's what we thought, however when we fire at the anywhere above the knees of the boss character, it goes right through him. I'll try looking at that.
Thanks
#3
11/21/2009 (5:49 pm)
You'll need to specify the character's collision box size in your boss's datablock. I've forgotten the exact name of the parameter, but it's something like 'boxSize' and takes a vector ("width depth height").
#4
Look for this code in the player.cs
11/21/2009 (7:14 pm)
Ah ok, What your looking for is the Bounding Box...Look for this code in the player.cs
boundingBox = "1.2 1.2 2.3";Modify this to suit your needs, I misunderstood what you were talking about earlier, a couple of tweaks to the boundingbox should have you on your way.
#5
11/25/2009 (7:30 pm)
Thanks guys, that did the trick.
Torque Owner CSMP
MP Studios
Though looking at your post again it looks like your talking more about the ShapeBaseNameHud... I think that is what it is called, in which case I'm not too sure, try searching around for "shapebase hud".