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.


  • Content Count

  • Joined

  • Last visited

Community Reputation

6 Neutral

About CakeMonsTv

  • Rank

Contact Methods

Profile Information

  • Gender
  • Location:
  • Interests
    game developer

Recent Profile Visitors

756 profile views
  1. CakeMonsTv

    Animation problem

  2. CakeMonsTv

    Kholat for free

    Not really my type of game
  3. CakeMonsTv

    Animation problem

    Can someone people help me fix this issue? Is it a unity bug? https://gyazo.com/5a8efbf35b75ee2c1ecef46e383866ef Everything in my prefab looks centered just fine. Thank you.
  4. CakeMonsTv

    Use of unassigned variable Hir

    Thank you, got it working.
  5. CakeMonsTv

    Use of unassigned variable Hir

    Can someone help me with this one? Code: using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerController : MonoBehaviour { public Transform target; void Start () { } // Update is called once per frame void Update () { Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition); RaycastHit hit; target.position = hit.point; Vector3 direction = (target.position - transform.position).normalized; Quaternion lookRotation = Quaternion.LookRotation (new Vector3(direction.x, 0, direction.z)); transform.rotation = Quaternion.Slerp (transform.rotation, lookRotation, Time.deltaTime + 5f); } } Thanks! 😄
  6. CakeMonsTv

    Adding objects to a list in specific order

    I Actually went for a totally different approach now. No sorting or anything, just instantiating objects one by one and adding them in list iin that order. (I had to do this sooner or later, since my project required it). Thanks for your time anyway.
  7. CakeMonsTv

    Adding objects to a list in specific order

    I did made a quick look into those articles and i didnt find anything usefull. I thought i could find a more elegant solution like simply searching for object name 1 then 2 then 3 etc. However I will give sorting a more in depth look if I dont find that solution.
  8. How would I add objects to a list in specific order? I first want to add object with name "1" then "2"... (look gyazo image below) Right now I made it so that all those objects will be added but not in that order. ----------------------------------------------------------------------------------------- public List<GameObject> places = new List<GameObject>(); foreach(GameObject placeSearch in GameObject.FindGameObjectsWithTag("place" + team)){ places.Add(placeSearch); } ----------------------------------------------------------------------------------------- Gameobjects to add in order from lowest name number to the highest https://gyazo.com/5be6357ef23dfe8092f68b908419b231 Thanks
  9. CakeMonsTv

    My Restarted FPS so far. Update #1

    Youz made those arms and you sayyou dont know how to use blender well? They are pretty good tho...
  10. CakeMonsTv

    MadFPS Kit

    Awesome kit gj
  11. Figured it out. So I dont even know what the real reason was but i just changed script for ray shooting and the other reason that im sure of was that you cant put getmousebuttonup insde getmousebutton. void Update () { if (Input.GetMouseButtonDown (1)) { RaycastHit hit; if (Physics.Raycast (Camera.main.ScreenPointToRay (Input.mousePosition), out hit, 100)) { Pressed = true; places.transform.position = hit.transform.position; } } if (Input.GetMouseButtonUp (1) && (Pressed == true)) { Pressed = false; RaycastHit hit; if (Physics.Raycast (Camera.main.ScreenPointToRay (Input.mousePosition), out hit, 100)) { float distance = Vector3.Distance(hit.point, places.transform.position); Debug.Log ("distance is" + distance); Pressed = false; } } }
  12. Nope. None of those solutions work... I tried replacing hit3.point with places.transform.position and i also tried putting second if statement out of first one and checking if first one was true before, then the program can call the second one. but it doesnt work. Any other ideas on how i could get the same effect. I mean i think there is a bug in unity's part
  13. I will test that too, but I think I figured it out. The second if statement cannot be called since mouse button 1 isnt pushed at the moment, therefore it cant be in first if statement which requires button to be held all the time. I didn't test it yet tho, ill let you know.
  14. Alright. So, I did what you said and it wrote in a log right after first if statement. Then i put it after second if statement, and it print out anything anymore.
  15. CakeMonsTv

    Car psyhics like RL

    You can put ann object at the end of a car and when you press a button for a flip, the script adds force in certain direction. Therefore the car will do a front flip. Then u can make a script that adjusts so the car always lands properly. (Adding small forces to make car land properly)