Package org.jbox2d.collision

Examples of org.jbox2d.collision.RayCastInput


    float h = worldExtent;
    m_queryAABB = new AABB();
    m_queryAABB.lowerBound.set(-3.0f, -4.0f + h);
    m_queryAABB.upperBound.set(5.0f, 6.0f + h);

    m_rayCastInput = new RayCastInput();
    m_rayCastInput.p1.set(-5.0f, 5.0f + h);
    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;
View Full Code Here


  }

  public void RayCast() {
    m_rayActor = null;

    RayCastInput input = new RayCastInput();
    input.set(m_rayCastInput);

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

    // Brute force ray cast.
View Full Code Here

    float h = worldExtent;
    m_queryAABB = new AABB();
    m_queryAABB.lowerBound.set(-3.0f, -4.0f + h);
    m_queryAABB.upperBound.set(5.0f, 6.0f + h);

    m_rayCastInput = new RayCastInput();
    m_rayCastInput.p1.set(-5.0f, 5.0f + h);
    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;
View Full Code Here

  }

  public void RayCast() {
    m_rayActor = null;

    RayCastInput input = new RayCastInput();
    input.set(m_rayCastInput);

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

    // Brute force ray cast.
View Full Code Here

TOP

Related Classes of org.jbox2d.collision.RayCastInput

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.