/** * Test a point for containment in this fixture. This only works for convex shapes. * * @param p a point in world coordinates. * @return */ public boolean testPoint(final Vec2 p) { return m_shape.testPoint(m_body.m_xf, p); }
@Override public boolean reportParticle(int index) { assert (index >= 0 && index < system.m_count); if (shape.testPoint(xf, system.m_positionBuffer.data[index])) { system.destroyParticle(index, callDestructionListener); destroyed++; } return true; } }
/** * Test a point for containment in this fixture. This only works for convex shapes. * * @param p a point in world coordinates. * @return */ public boolean testPoint(final Vec2 p) { return m_shape.testPoint(m_body.m_xf, p); }
@Override public boolean reportParticle(int index) { assert (index >= 0 && index < system.m_count); if (shape.testPoint(xf, system.m_positionBuffer.data[index])) { system.destroyParticle(index, callDestructionListener); destroyed++; } return true; } }
p.x = x; p.y = y; if (shape.testPoint(identity, p)) { Transform.mulToOut(transform, p, p); particleDef.position.x = p.x;
@Override public boolean reportParticle(int index) { Vec2 p = world.getParticlePositionBuffer()[index]; if (shape.testPoint(xf, p)) { Vec2 v = world.getParticleVelocityBuffer()[index]; v.set(velocity); } return true; } }
/** * Test a point for containment in this fixture. This only works for convex shapes. * * @param p a point in world coordinates. * @return */ public boolean testPoint(final Vec2 p) { return m_shape.testPoint(m_body.m_xf, p); }
/** * Test a point for containment in this fixture. This only works for convex shapes. * * @param p a point in world coordinates */ public boolean containsPoint(final Vec2 p) { return shape.testPoint(body.m_xf, p); }
/** * Test a point for containment in this fixture. This only works for convex shapes. * * @param p a point in world coordinates. * @return */ public boolean testPoint(final Vec2 p) { return m_shape.testPoint(m_body.m_xf, p); }
@Override public boolean reportParticle(int index) { assert (index >= 0 && index < system.m_count); if (shape.testPoint(xf, system.m_positionBuffer.data[index])) { system.destroyParticle(index, callDestructionListener); destroyed++; } return true; } }
@Override public boolean reportParticle(int index) { assert (index >= 0 && index < system.m_count); if (shape.testPoint(xf, system.m_positionBuffer.data[index])) { system.destroyParticle(index, callDestructionListener); destroyed++; } return true; } }
p.x = x; p.y = y; if (shape.testPoint(identity, p)) { Transform.mulToOut(transform, p, p); particleDef.position.x = p.x;
p.x = x; p.y = y; if (shape.testPoint(identity, p)) { Transform.mulToOut(transform, p, p); particleDef.position.x = p.x;
p.x = x; p.y = y; if (shape.testPoint(identity, p)) { Transform.mulToOut(transform, p, p); particleDef.position.x = p.x;