Hi guys.
I would like to generate a lots of coins in 3D world, they hit walls and other enemies, but never hit each other,
And want to get trigger when they hit to the player(but no bounce) just like Super Mario Bros.
Hi guys.
I would like to generate a lots of coins in 3D world, they hit walls and other enemies, but never hit each other,
And want to get trigger when they hit to the player(but no bounce) just like Super Mario Bros.
All of this is covered right here: Learn
Specifically the section involving physics. That’s where the information involving colliders and triggers is located.
But going through all of the tutorials is still highly recommended.
Trigger doesn’t work because I want coins hit wall.
Layer doesn’t work because coins shouldn’t hit each other they only hit wall, which means I need to create tons of layers for each coins. Any technique I missed from tutorials?
Yes, it appears you have missed almost everything salient to your basic undertaking.
Triggers are for the collision events via the physics system, NOT for actual physics.
Layers are used to indicate to the physics system that things do not collide. You would make ALL coins be in a single layer, and make it so they don’t collide with one another. Further, you might make it so they ONLY collide with entities capable of picking them up.
Seriously, the problem you are trying to solve is SOOOOO trivial that virtually any Unity physics and triggering tutorial will have you construct something that basically does almost exactly what you are trying to learn how to do.
Relax… hes just new
Moved to getting started. This way, nobody can start moaning at new questions ![]()
Probably the best way to go about it is doing the learn tutorials, and keeping an eye out for triggers and layers, with OnCollisionEnter2D…
I misunderstood the concept of Layer Collision Matrix. Now it works great. Sorry for my beginner question.
Have a good New Years day.