Exemplo n.º 1
0
void b2ChainAndCircleContact::Evaluate(b2Manifold* manifold,
		const b2Transform& xfA, const b2Transform& xfB) {
	b2ChainShape* chain = (b2ChainShape*) m_fixtureA->GetShape();
	b2EdgeShape edge;
	chain->GetChildEdge(&edge, m_indexA);
	b2CollideEdgeAndCircle(manifold, &edge, xfA,
			(b2CircleShape*) m_fixtureB->GetShape(), xfB);
}
void b2EdgeAndCircleContact::Evaluate()
{
	b2Body* bodyA = m_fixtureA->GetBody();
	b2Body* bodyB = m_fixtureB->GetBody();

	b2CollideEdgeAndCircle(	&m_manifold,
							(b2EdgeShape*)m_fixtureA->GetShape(), bodyA->GetXForm(),
							(b2CircleShape*)m_fixtureB->GetShape(), bodyB->GetXForm());
}
Exemplo n.º 3
0
void b2EdgeAndCircleContact::Evaluate(b2Manifold* manifold,
		const b2Transform& xfA, const b2Transform& xfB) {
	b2CollideEdgeAndCircle(manifold, (b2EdgeShape*) m_fixtureA->GetShape(), xfA,
			(b2CircleShape*) m_fixtureB->GetShape(), xfB);
}