PlaneShift
Development => Development Deliberation => Topic started by: Nikodemus on March 31, 2008, 10:44:33 pm
-
What's the shape of character bounding box?
I'm interested with the largest box of all player character, its dimensions in the widest intersection. If it is a square, im interested with its diagonal :)
-
gues, noone really knows ;)
the diagonal is like 1m at most or so?
-
Well, it's either set in the database in the race_info table, or the one crystal space makes up for the model. I'm guessing it's a rectangular box, as there are three fields in the database.
The crystal space bounding boxes are mostly not very accurate, on a test server check the height of the label above a male ynnwn, then compare it to the height above a dwarf (if I remember right). The label is a fixed distance above the bounding box, see src/client/entitylabels.cpp:303.
And if I recall correctly, the height of the ylianm model is about 1.8 units or so, so take the units to be meters and you should be ok.
-
I recall an issue with the black fenki model where they would get stuck in certain places due to a bad size of their bounding box. Find that thread, and that would give you the answer if it was a db issue or an issue with their char model.
my poor fenki was stuck in the tavern for weeks.......
-
I probably was not very clear ;)
The bounding box can either be set in the database, or if it is not set, it uses the box that crystal space generates for it.
My guess is that some models use the default box, but with other models where the box was too incorrect, it is overridden in the database.
-
I think you was quite clear. it is only that I don't own test server and so cant even look to database ;P
this: http://devcast.ps-mc.net/
is quite good though, i know who to ask when i will need to know dimensions badly ;)