Sections

Monday, June 9, 2014

Make progress every day

Just like a dear teacher of mine said, "Make progress every day".

Today I wanted to create the controls for moving upwards on walls for our character. 
This , once again, is something I've never done before. Still, after 6hrs of non-stop work and some 3D math refreshing, I managed to make my own system to accomplish this.

This is how I pictured it.
First I must say, that our character moves (when he is small) by pushing with using the physics engine of Unity3D. Now, I needed to find a way to push him parallel to the surface with was standing on at all times. My thought was to use the normal of the contact point of the surface to then generate a force in the perpendicular corresponding direction. I have no idea if there are advanced Unity function to do this, so I made my own.

I'm so happy to say that I did manage to make it work! Our character can climb all the surfaces with wanted to.


That's today progress, until next time.



[j]

No comments:

Post a Comment