Search code examples
c++math3dbulletphysics

GIM_TRIANGLE::is_point_inside wrong (bullet physics)


p = 0.00585938 0.117188 0

t0 = 0.477429 0.814244 0
t1 = 0.25219 0.818112 0
t2 = 0.478054 0.589852 0

is_point_inside is returning true when passed the values above. Shouldn't it return false?


Solution

  • I Just needed to lower the margin.

    tri.m_margin = 0.000001f;