Jump to content
  • Advertisement
  • entries
  • comments
  • views

Move back to 2D underway

Sign in to follow this  



The move back to 2D physics is now underway. I have:

  • Added back support to my level editor to add and manipulate 2D shapes
  • Ripped out the old physics code and replaced with a 2D version
  • Built a player character than just moves around with the arrow keys, but collides with the level geometry

    So now I need to reimplement the kinematic character controller, but this time in 2D. Before I can do that I need to get a ray casting system working again. Just need to do ray-line segment intersections with the edges of the polygons I guess, with a dot product of the ray and normal check to make sure we are hitting the correct side.

    Should be easy enough to add in floor support then, moving up and down slopes correctly and so on. I want to try to get the 2D physics as rock solid as possible before I move on in development.

    That's about all for today, thanks for reading.
Sign in to follow this  


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!