How do make a sprite of a drinking glass have a solid bottom and side with gravity
I am trying to make a sprite of a 2D drinking glass have a solid left and right side and bottom. And the glass should have gravity but at the same time you can drop something into the glass without it falling through the glass.
Sorry if this sounds too easy to make but I am new and it is a challenge for me. Any help would be apprecitated
add 2d collider components, there are poly and box colliders you can use.
https://unity3d.com/learn/tutorials/topics/2d-game-creation/collider-2d
Answer by MelvMay · Mar 20, 2017 at 01:51 PM
Add an EdgeCollider2D and set the points to create the glass U shape.2D drinking glass have a solid left and right side and bottom
Nothing "has gravity"; Gravity is applied to a Dynamic Rigidbody2D so add one of those.And the glass should have gravity.
Your answer
Follow this Question
Related Questions
My Unity Rigidbody 2D character fall slowly after a jump,Unity RigidBody Character falls slowly 0 Answers
The player falls down a ladder 0 Answers
Rigidbody2D falls slowly with MovePosition? 1 Answer
How to make Smooth Gravity Transitions 0 Answers
How to make object land on certain point?,How to make object land on certain point?? 0 Answers