Game Development Community

Someone knows this offhand..

by Zod · in Technical Issues · 10/21/2006 (9:41 pm) · 5 replies

If I scale a player object up, will the bounding box scale with it?

Something tells me the answer is no but since I cannot look for myself I am asking you all :-)

#1
10/24/2006 (11:50 am)
I think it will scale up with it.
Well, you can test that: make a ball, and set some echo on onCollision() event with mouse. Experiment, and you will know.
#2
10/24/2006 (12:06 pm)
If it doesnt.
scale is broken and useless.
the box is used to clip the object among other things.
if you scale him as big as a mountain and he still has a tiny box.
he would be clipped right away.

so something tell's me it does.
#3
10/24/2006 (12:42 pm)
How is scale broken? seems to work fine to me.
#4
10/24/2006 (2:03 pm)
No.

The Players bounding box is set in the players datablock.

I found this out when i replaced the orc with my model. The bounding box stayed the same.

you need to adjust the box in the datablock.

EDIT: Very easey way to tell, go into cameria mode, and slect your player, there is your bounding box.
#5
10/24/2006 (10:45 pm)
If you change the scale of the original mesh and if you change the scale of the player in code are two different things. If you change the actual mesh, then yes, the datablock settings for the bounding box will need to be changed. But I believe the bounding box should scale with the player when you change their scale in code. I'm pretty sure the player code is set to make the proper changes when it gets a new scale...