//--------------------------------------------------------------------- float getTurretAngle(EbVector3 target_position) { EbVector3 bullet_direction = target_position - mTurret.getTurretPos(); return(CLogicUtility.getAngle(bullet_direction)); }