In the WCK Boxman demo, I saw this comment:
Or is something strange happening?
Code:
// Dot producting the contact normal with gravity indicates how floor-like the
// contact is. If the dot product = 1, it is a flat foor. If it is -1, it is
// a ceiling. If it's 0.5, it's a sloped floor. Save the contact manifold
// that is the most floor like.
But when I traced the value, I got 10 for horizontal surfaces. I found that gravity (by default) is set to 10. If I normalize gravity, then values will range between -1 and 1.// contact is. If the dot product = 1, it is a flat foor. If it is -1, it is
// a ceiling. If it's 0.5, it's a sloped floor. Save the contact manifold
// that is the most floor like.
Or is something strange happening?