Can anyone help finding out model sizes?
Soul_Rider
Mod Bean Join Date: 2004-06-19 Member: 29388Members, Constellation, Squad Five Blue
I am trying to create physics boxes for models in game. The only problem is you have to manually define all the extents. I have a model I am defining the extents for, and i've compared it in model viewer to the skulk for example, by opening different windows, but there is no way to actually find out the unit size of the model.
Can anyone tell me a way to do this? Or is it a case of keep playing with values until I get one that feels right?
Edit: extents are also done as a fraction of 1, ie 0.45, what unit size refers to 1?
Can anyone tell me a way to do this? Or is it a case of keep playing with values until I get one that feels right?
Edit: extents are also done as a fraction of 1, ie 0.45, what unit size refers to 1?
Comments
Can anyone tell me a way to do this? Or is it a case of keep playing with values until I get one that feels right?
Edit: extents are also done as a fraction of 1, ie 0.45, what unit size refers to 1?<!--QuoteEnd--></div><!--QuoteEEnd-->
What do you mean you have to manually define the extents? Can't you just use GetModelExtents()? Or are you saying that GetModelExtents() uses some predefined values and doesn't actually load it from the model?
I will try GetModelExtents, lol :)
------------------------------------------------------------------------------------------------------------------------------------
EDIT
Just tried it, and GetModelExtents is just a wrapper around GetExtents(self.boneCoords)
My model has no bone coords defined, so doesn't work. It is just a box, so I have to use GetExtents() and manually specify the values.
Maybe you can suggest a way to pick up the bounding box of a model, rather than the bones?
The 'lego' type crate is the one I have been trying to set the extents on, the bigger box is just a copy of the same extents. There has got to be a less painful way of doing this than going backwards and forwards like this :P
<center><object width="450" height="356"><param name="movie" value="http://www.youtube.com/v/40L4mj1KuFs"></param><embed src="http://www.youtube.com/v/40L4mj1KuFs" type="application/x-shockwave-flash" width="450" height="356"></embed></object></center>