Package box2dLight

Examples of box2dLight.PointLight


  }
 
  void initPointLights() {
    clearLights();
    for (int i = 0; i < BALLSNUM; i++) {
      PointLight light = new PointLight(
          rayHandler, RAYS_PER_BALL, null, LIGHT_DISTANCE, 0f, 0f);
      light.attachToBody(balls.get(i), RADIUS / 2f, RADIUS / 2f);
      light.setColor(
          MathUtils.random(),
          MathUtils.random(),
          MathUtils.random(),
          1f);
      lights.add(light);
View Full Code Here


  public void create() {
    camera = new OrthographicCamera(48, 32);
    camera.update();
    world = new World(new Vector2(0, -10), true);
    rayHandler = new RayHandler(world);
    new PointLight(rayHandler, 32);

  }
View Full Code Here

TOP

Related Classes of box2dLight.PointLight

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.