Package org.jbox2d.collision

Examples of org.jbox2d.collision.RayCastOutput


    m_rayCastInput.p2.set(7.0f, -4.0f + h);
    // m_rayCastInput.p1.set(0.0f, 2.0f + h);
    // m_rayCastInput.p2.set(0.0f, -2.0f + h);
    m_rayCastInput.maxFraction = 1.0f;

    m_rayCastOutput = new RayCastOutput();

    m_automated = false;
  }
View Full Code Here


  public float raycastCallback(final RayCastInput input,
      int proxyId) {
    Actor actor = (Actor) m_tree.getUserData(proxyId);

    RayCastOutput output = new RayCastOutput();
    boolean hit = actor.aabb.raycast(output, input, getWorld().getPool());

    if (hit) {
      m_rayCastOutput = output;
      m_rayActor = actor;
View Full Code Here

    // Ray cast against the dynamic tree.
    m_tree.raycast(this, input);

    // Brute force ray cast.
    Actor bruteActor = null;
    RayCastOutput bruteOutput = new RayCastOutput();
    for (int i = 0; i < e_actorCount; ++i) {
      if (m_actors[i].proxyId == -1) {
        continue;
      }

      RayCastOutput output = new RayCastOutput();
      boolean hit = m_actors[i].aabb.raycast(output, input,
          getWorld().getPool());
      if (hit) {
        bruteActor = m_actors[i];
        bruteOutput = output;
View Full Code Here

    m_rayCastInput.p2.set(7.0f, -4.0f + h);
    // m_rayCastInput.p1.set(0.0f, 2.0f + h);
    // m_rayCastInput.p2.set(0.0f, -2.0f + h);
    m_rayCastInput.maxFraction = 1.0f;

    m_rayCastOutput = new RayCastOutput();

    m_automated = false;
  }
View Full Code Here

  public float raycastCallback(final RayCastInput input,
      int proxyId) {
    Actor actor = (Actor) m_tree.getUserData(proxyId);

    RayCastOutput output = new RayCastOutput();
    boolean hit = actor.aabb.raycast(output, input, getWorld().getPool());

    if (hit) {
      m_rayCastOutput = output;
      m_rayActor = actor;
View Full Code Here

    // Ray cast against the dynamic tree.
    m_tree.raycast(this, input);

    // Brute force ray cast.
    Actor bruteActor = null;
    RayCastOutput bruteOutput = new RayCastOutput();
    for (int i = 0; i < e_actorCount; ++i) {
      if (m_actors[i].proxyId == -1) {
        continue;
      }

      RayCastOutput output = new RayCastOutput();
      boolean hit = m_actors[i].aabb.raycast(output, input,
          getWorld().getPool());
      if (hit) {
        bruteActor = m_actors[i];
        bruteOutput = output;
View Full Code Here

TOP

Related Classes of org.jbox2d.collision.RayCastOutput

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.