Game Development Community

Player collision/bounding box

by Derk Adams · in Torque Game Engine · 11/08/2004 (8:44 am) · 3 replies

Greetings,

I have imported a new character model which is about twice the height of the standard orc. The problem is that the collision box is still the "standard" size. The "collision" mesh in the modeling program seems to only work for vehicles and items, not players. Any ideas on how to change the size of the collision box? Is it hard coded into the engine? If so, any suggestions on where I should look?

Thanks.

#1
11/08/2004 (8:50 am)
This will sound strange but I'm only suggesting this cos you say its specific to players not vehicles....

Just to make sure, are you certain its not the bounding box that you are saying is still same size?

In player.cs in the player datablock there is a setting called "boundingbox" try changing the values here (for instance make the z value way bigger) and then go in game again and check... I have a hunch its the boundingbox after you select the object that you are seeing as the same size.
#2
11/08/2004 (10:17 am)
Craig,

Ok, I feel stupid. I was trying to get it in the model and didn't even think to check the datablock.

Thank you for pointing out the obvious :)
#3
11/08/2004 (11:44 am)
No probs ;)