Tutorial 01
Unity Tutorial 02
This week I have continued on further with the development of my 2d game. As mentioned before I managed to get colliders working for the tiles so to explain. The tiles that contain "water" have a collider on them which once it comes into contact with the box collider on the Ruby player model it wont let it inside the box.
All
the other tiles are exempt from this as we obviously need to be able to
walk on them. Aswell as that I have imported some decorative assets to
my scene such as boxes, trees a house and a few telephone poles. All
these objects have box colliders on them which make it a bit more
realistic as the player cant just walk through them. The box colliders
did have to be edited a bit mainly due to the fact that when the
collider was applied it was including the shadow in the box, which I
didn't want. So I had to edit them and changed it so now its only the
physical object its self. After experimenting with this i found that I
was still clipping the objects so I decided to make the colliders
smaller. So for the likes of the tree I have shrunk the collider down so
its only at the base of the tree. This all works perfectly now as the
player moves behind the trees anyways so its ok to not have a collider
that high up. One other thing that needed to be tweaked was to lock a
rotating axis on the ruby model as when you came into contact with a box
collider the player would start rotating around in all sorts of weird
movements.
Unity Screenshot |
Comments
Post a Comment