Exemplo n.º 1
0
float TriggerLineSeg::HitTest(const Ball * const pball, const float dtime, CollisionEvent& coll) const
{
   if (!m_ptrigger->m_hitEnabled) return -1.0f;

   // approach either face, not lateral-rolling point (assume center), not a rigid body contact
   return HitTestBasic(pball, dtime, coll, false, false, false);
}
Exemplo n.º 2
0
float LineSeg::HitTest(const Ball * pball, float dtime, CollisionEvent& coll)
{															// normal face, lateral, rigid
	return HitTestBasic(pball, dtime, coll, true, true, true);
}
Exemplo n.º 3
0
float LineSegSlingshot::HitTest(const Ball * const pball, const float dtime, CollisionEvent& coll) const
{
   return HitTestBasic(pball, dtime, coll, true, true, true);
}