//------------------------------------------------------------------------- void _initRoute(EbVector3 init_position, float init_direction) { mMassEntity = new MassEntity(); RouteParaCurve route = new RouteParaCurve(); route.create(init_position, init_direction, 0.4f, 20f); mMassEntity.setRoute(route); }
//--------------------------------------------------------------------- void _initDieRoute() { mMassEntity = new MassEntity(); RouteParaCurve route = new RouteParaCurve(); route.create(mRenderFish.Position, 0, 0.6f, mRenderFish.jumpDistance()); mMassEntity.setRoute(route); }
//------------------------------------------------------------------------- void _playFireAnimation() { mMassEntity = new MassEntity(); RouteParaCurve route = new RouteParaCurve(); route.create(mRenderTurret.getTurretPos(), mRenderTurret.getTurretAngle(), 0.1f, -13f); mMassEntity.setRoute(route); mIsFireAnimation = true; mTurretBlazeSprite.setActive(true); mTurretBlazeSprite.setPosition(mRenderTurret.getTurretPos()); mTurretBlazeSprite.setDirection(mRenderTurret.getTurretAngle()); }