Examples of toAABB()


Examples of resonant.lib.prefab.vector.Cuboid.toAABB()

  {
    final double repulsionVelocity = Math.max(projector.getModuleCount(this) / 20, 1.2);
    final Set<Vector3> field = projector.getCalculatedField();

    Cuboid volume = new Cuboid(projector.getNegativeScale().clone().invert(), projector.getPositiveScale().clone().add(1)).add(new Vector3((TileEntity) projector).add(projector.getTranslation()));
    List<Entity> entities = ((TileEntity) projector).getWorldObj().getEntitiesWithinAABB(Entity.class, volume.toAABB());

    for (Entity entity : entities)
    {
      Vector3 fieldPos = new Vector3(entity).floor();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.