Package com.flansmod.client.debug

Examples of com.flansmod.client.debug.EntityDebugVector


        lookOrigin = axes.findLocalVectorGlobally(lookOrigin);
        Vector3f.add(lookOrigin, new Vector3f(posX, posY, posZ), lookOrigin);
   
        Vector3f lookVector = axes.findLocalVectorGlobally(seats[0].looking.findLocalVectorGlobally(new Vector3f(reach, 0F, 0F)));
       
        worldObj.spawnEntityInWorld(new EntityDebugVector(worldObj, lookOrigin, lookVector, 20));
       
        Vector3f lookTarget = Vector3f.add(lookVector, lookOrigin, null);
       
        MovingObjectPosition hit = worldObj.rayTraceBlocks(lookOrigin.toVec3(), lookTarget.toVec3());
       
View Full Code Here


          Vector3f nextPosInWorldCoords = new Vector3f(player.posX + nextPosInPlayerCoords.x, player.posY + nextPosInPlayerCoords.y, player.posZ + nextPosInPlayerCoords.z);
         
          Vector3f dPos = data.lastMeleePositions[k] == null ? new Vector3f() : Vector3f.sub(nextPosInWorldCoords, data.lastMeleePositions[k], null);
         
          if(player.worldObj.isRemote && FlansMod.DEBUG)
            player.worldObj.spawnEntityInWorld(new EntityDebugVector(player.worldObj, data.lastMeleePositions[k], dPos, 200, 1F, 0F, 0F));
         
          //Do the raytrace
          {
            //Create a list for all bullet hits
            ArrayList<BulletHit> hits = new ArrayList<BulletHit>();
View Full Code Here

          Vec3 posVec = Vec3.createVectorHelper(entityplayer.posX, entityplayer.posY + 1.62D - entityplayer.yOffset, entityplayer.posZ);       
          Vec3 lookVec = posVec.addVector(sinYaw * cosPitch * length, sinPitch * length, cosYaw * cosPitch * length);
         
          if(world.isRemote && FlansMod.DEBUG)
          {
            world.spawnEntityInWorld(new EntityDebugVector(world, new Vector3f(posVec), new Vector3f(posVec.subtract(lookVec)), 100));
          }
         
          if(type.healDriveables)
          {
        //Iterate over all EntityDriveables
View Full Code Here

      Vector3f currentRelPos = axes.findLocalVectorGlobally(p.position);
      Vec3 currentPos = Vec3.createVectorHelper(posX + currentRelPos.x, posY + currentRelPos.y, posZ + currentRelPos.z);
     
      if(FlansMod.DEBUG && worldObj.isRemote)
      {
        worldObj.spawnEntityInWorld(new EntityDebugVector(worldObj, new Vector3f(lastPos), Vector3f.sub(currentRelPos, lastRelPos, null), 10, 1F, 0F, 0F));
      }
     
      MovingObjectPosition hit = worldObj.rayTraceBlocks(lastPos, currentPos, crashInWater);
      if(hit != null && hit.typeOfHit == MovingObjectType.BLOCK)
      {
View Full Code Here

TOP

Related Classes of com.flansmod.client.debug.EntityDebugVector

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.