public CoalesceConfig(ASpiral3D spiral, ATransformable3D object, ATransformable3D coalesceAround, double endProximity) { this.spiral = spiral; this.object = object; this.coalesceAroundObject = coalesceAround; this.coalesceAroundPoint = coalesceAroundObject.getPosition(); this.endProximity = endProximity; }
@Override protected void applyTransformation() { synchronized (mCoalesceObjects) { synchronized (mThetaRanges) { int i; final int j = mCoalesceObjects.size(); for (i = 0; i < j; ++i) { // Retrieve the configuration CoalesceConfig config = mCoalesceObjects.get(i); double theta = mThetaRanges.get(i) * mInterpolatedTime; // Calculate the next point config.spiral.calculatePoint(config.object.getPosition(), theta); // Add the coalesce point to translate our spiral config.object.getPosition().add(config.coalesceAroundPoint); } } } }
@Override protected void eventStart() { if (isFirstStart()) mFromPosition.setAll(mTransformable3D.getPosition()); super.eventStart(); }
@Override protected void applyTransformation() { mSplinePath.calculatePoint(mTempPoint1, mInterpolatedTime); mTransformable3D.setPosition(mTempPoint1); if(mTarget != null) { mTransformable3D.setLookAt(mTarget.getPosition()); if(mUp != null) mTransformable3D.setUpAxis(mUp); } if (mOrientToPath) { // -- calculate tangent mSplinePath.calculatePoint(mTempPoint2, mInterpolatedTime + mLookatDelta * (mIsReversing ? -1 : 1)); mTransformable3D.setLookAt(mTempPoint2); } }
if (volume == null) { ATransformable3D object = (ATransformable3D) members.get(i); test_against_min = object.getPosition(); test_against_max = test_against_min; } else {
public CoalesceConfig(ASpiral3D spiral, ATransformable3D object, ATransformable3D coalesceAround, double endProximity) { this.spiral = spiral; this.object = object; this.coalesceAroundObject = coalesceAround; this.coalesceAroundPoint = coalesceAroundObject.getPosition(); this.endProximity = endProximity; }
@Override protected void applyTransformation() { synchronized (mCoalesceObjects) { synchronized (mThetaRanges) { int i; final int j = mCoalesceObjects.size(); for (i = 0; i < j; ++i) { // Retrieve the configuration CoalesceConfig config = mCoalesceObjects.get(i); double theta = mThetaRanges.get(i) * mInterpolatedTime; // Calculate the next point config.spiral.calculatePoint(config.object.getPosition(), theta); // Add the coalesce point to translate our spiral config.object.getPosition().add(config.coalesceAroundPoint); } } } }
@Override protected void eventStart() { if (isFirstStart()) mFromPosition.setAll(mTransformable3D.getPosition()); super.eventStart(); }
if (volume == null) { ATransformable3D object = (ATransformable3D) members.get(i); test_against_min = object.getPosition(); test_against_max = test_against_min; } else {