Day: April 21, 2015

  • Gravity and Hit Detection in Unity

    To add gravity to your main hero (for example) so he falls to physics: Place the image of the character into the scene and in the inspector click ‘add component’ and select ‘box collider 2d’ or circle collider 2d’ depending on the shape you want to have. Add the component ‘Rigidbody 2D’, so the object…