Hey again everyone :)
I have a very small question about the test results I received while attempting to do a movement with my character controller.
There is an event that occurs (doesn't really matter for the question) and then a method is called which does a capsule cast (you don't need to understand it for this question either). One of the values I am using is controller.bounds.min.y and controller.bounds.max.y .
Here are the results on a breakpoint:
...min.y = 0.20
...max.y = 1.69
and the extents of the bounds say the center is at 0.7.
So 0.7 - 0.20 = 0.50 --> deltaCenter = .5
and 1.69 - 0.7 = 0.99 --> delteCenter = .99
So the center isn't the center even on the first frame this hits? That's strange, since I only change the controller size on an unrelated event that does not occur here (which would make sense so I checked before asking everyone for their time here).
So penny for your thoughts really. Doesn't seem to change a couple of frames later, think the bounds is just broken? Or am I missing something obvious again?
EDIT 13:13 GMT+1 12/09/2010:
I can verify that the values of the bounds min and max are accurate. When I put some test objects in my scene at all the aforementioned values I can see compared to the character controller that both min and max are the center values of the spheres of the character controller capsule and that the center of the cylinder is actually a little bit offset along the negative y axis (at 0 rotation on X axis). Meaning that the cube on 0.7 shows a little lower than the center of the cylinder. Can someone confirm that bounds is broken or is this a code fluke I am overlooking?