Hi Guys
My name is Theron, and Im a masters student , studying computer games systems. My dissertation project is on 3d simulation of a self checkout machine. I have never worked on unity 3d before, but I tried creating small games, thus im not well versed in it. I needed some solution as to how to overcome the difficulties im facing at the moment
I have to design the entire supermarket, which i have done in 3ds max, including the items i will be using in the supermarket.
The environment in the supermarket is ready, but m stuck with the scripting part.
My first person controller is a person holding a trolley and as i move my way around the supermarket i can click on the items i want to buy.
Problems facing:-
Once i click the items i want to buy i created an animation for the player to remove the item from the shelve, but when I place it in the trolley it dose not remain on the trolley and falls directly to the floor.
im creating a self check out machine thus i wanted an idea as to how to change the screens on the machine as the instruction is followed. for instance
a) first option is “Scan Items”
b) second the screen clears and the scan items part comes. and once we click finish and pay the screen clears
c) the next screen is the payment mode.
In this way i wanted an idea how to script all this. Can you please help me assist me, as my dissertation is due next month:(
Once I get how to do this part of it, I will finish my project in time.
Thank you
I don’t have so much time right now, but for the first question;
Did you add some kind of collider(ex: Box Collider) to your items? If no, put a box collider to the items on the shelve and also I suggest you to put a mesh collider to your trolley object.
Just like these guys say, it sounds like you need to use colliders.
To do so, your objects will also need rigidbodies. If you haven’t been designing your game with rigidbodies in mind, it may open up a can of works.
Your shopping cart needs to have a collider at the bottom of the bin, so that the items do not fall out. One option is the mesh collider that was suggested.
Another is to make 4 child game objects that each have a box collider, and then place them in a bin-like arrangement. I believe the parent object combines all these colliders into a complex collider, but I don’t recall…
In any case, when both your cart and your shopping items have rigidbodies, they will collide with eachother. You can find a chart at the bottom of the following webpage that explains when collision occur or get ignored between two objects:
Let us know how this works out for you. And we want to see some screenshots! It sounds exciting, this virtual shopping market, haha.
theronsoares, I am looking to build a game set in a grocery store, and I am having trouble finding assets in the asset store for that type of location. Any chance you would be willing to share the environment, or assets? Would you consider making them available in the asset store for purchase? Thanks!