@Override public float reportHit(Vector3 hitNormalLocal, float hitFraction, int partId, int triangleIndex) { if ((meshPartIndices == null || meshPartIndices.get(partId)) && hitFraction < this.hitFraction) { this.hitNormalLocal.set(hitNormalLocal); this.hitFraction = hitFraction; this.partId = partId; this.triangleIndex = triangleIndex; return hitFraction; } return 1; }
public boolean is(Bits rgmask) { return (index < 0 && rgmask.isEmpty()) || rgmask.get(index); }
@Override public final void disabled(Entity e) { if(e.getSystemBits().get(systemIndex)) { removeFromSystem(e); } }
@Override public final void deleted(Entity e) { if(e.getSystemBits().get(systemIndex)) { removeFromSystem(e); } }
if (handledIndices.get(indexI)) {
/** * Remove Component of specified class for a given Entity. * * @param e Entity to remove the component for. * @param type Component class to remove. */ public void removeComponent(Entity e, Class<? extends Component> type) { int classIndex = getComponentClassIndex(type); if(e.getComponentBits().get(classIndex)) { e.getComponentBits().clear(classIndex); if (!componentsToDelete.containsKey(e)) { componentsToDelete.put(e, Pools.obtain(IntArray.class)); } componentsToDelete.get(e).add(classIndex); } }
if (!allowedMeshParts.get(meshPartIndex)) { continue;
if (allowedMeshParts.get(mpIndex)) { for (int triIndex = 0; triIndex < graph.getTriangleCount(mpIndex); triIndex++) { Triangle tri = graph.getTriangleFromMeshPart(mpIndex, triIndex);