Jump to content
This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.

Aeleas

Member
  • Content Count

    138
  • Joined

  • Last visited

  • Days Won

    3

Aeleas last won the day on January 8

Aeleas had the most liked content!

Community Reputation

8 Neutral

About Aeleas

  • Rank
    Member

Profile Information

  • Gender
    Male
  • Location:
    this world

Recent Profile Visitors

956 profile views
  1. Aeleas

    Blender to Unity missing Edge?

    Good to hear this. Good Luck.
  2. Aeleas

    Sort first objects nearest me ?

    You right. List is more flexible for this. Thanks god that I found some one give me good solution. Here is how he solve it. public List<GameObject> enemiesInRange = new List<GameObject>(); public int hox; int SortByDistanceToMe(GameObject a, GameObject b) { float squaredRangeA = (a.transform.position - transform.position).sqrMagnitude; float squaredRangeB = (b.transform.position - transform.position).sqrMagnitude; return squaredRangeA.CompareTo(squaredRangeB); } void Update() { enemiesInRange.Sort(SortByDistanceToMe); hox = enemiesInRange.Count; if (hox == 1) { enemiesInRange[0].GetComponent<enemypath>().enemy_checker = true; } if (hox == 2) { enemiesInRange[0].GetComponent<enemypath>().enemy_checker = true; enemiesInRange[1].GetComponent<enemypath>().enemy_checker = true; } if (hox == 3) { enemiesInRange[0].GetComponent<enemypath>().enemy_checker = true; enemiesInRange[1].GetComponent<enemypath>().enemy_checker = true; enemiesInRange[2].GetComponent<enemypath>().enemy_checker = true; } } void OnTriggerEnter(Collider other) { if (other.CompareTag("enemy") && hox < 3) // list have three enemies enemiesInRange.Add(other.attachedRigidbody.gameObject); } void OnTriggerExit(Collider other) { if (other.CompareTag("enemy")) enemiesInRange.Remove(other.attachedRigidbody.gameObject); }
  3. Aeleas

    Sort first objects nearest me ?

    Hi. I need to make my object read the first 3 objects that close to him, and sort it by the distance. The first in the array is the nearest one...and so on. After that, find a script inside those in the list to active the bool option "enemy_checker". public int numSelectors; public GameObject[] Enemy; public float[] distance; void Update() { Enemy = GameObject.FindGameObjectsWithTag("enemy"); for (int i = 0; i < Enemy.Length; i++) { distance[Enemy.Length] = Vector3.Distance(gameObject.transform.position, Enemy[i].transform.position); numSelectors = Enemy.Length; if (numSelectors < 3) { Enemy[i].GetComponent<enemypath>().enemy_checker = true; } } }
  4. Aeleas

    Blender to Unity missing Edge?

    Try to upload that model to check it for you.
  5. Aeleas

    Add shield to animated model ?

    Thank you guys. Yes, I have to rig the shield.
  6. Aeleas

    Add shield to animated model ?

    It's possible to add body shield to model after done from animated ? So, when character sit,jump or run, this shield will fit the movement of the chest. When attached this shield object to chest bone I get this. How to solve this ?
  7. really beautiful. Thank you for sharing.
  8. Aeleas

    Bugs after upgrading Unity

    yeah, I know this feeling . Look, before it happens to me when upgrade my unity version. To solve this I worked on every script I wrote and check it step by step. Good look man. you got yourself long night today.
  9. Aeleas

    MadFPS Kit

    Yes. the smooth movement remind me of "RS Siege".
  10. Aeleas

    MadFPS Kit

    At this second 0:35, you deserve a medal. Good Job.
  11. Aeleas

    Unity doesn't accept blender animation file ?

    Still I can't see this option "Whole character". Anyway I found way to solve this. Thank you TalkZer.
  12. Aeleas

    Unity error with with a message

    Simple. Here is the link for VS code. Follow this tutorial. Later, Install these extensions, Debugger for Unity + Atom One Dark Theme + Unity Snippets. Good Luck.
  13. Aeleas

    Unity doesn't accept blender animation file ?

    "Whole character" where is this option ? Show me image please
  14. I download file form mixamo and drag it to unity and it works. I needed to fix animation movement by blender but after export it to unity, unity didn't accept it !!. I get this error: Here are both animation files. https://www.sendspace.com/file/pujdif I don't know why unity do this ! Please, I need help with this.
  15. Aeleas

    Unity error with with a message

    I'm using VScode + unity debug, and it running very well. Try it.
×