How to create 2D physics from scratch

  • Thread starter Thread starter LavaCreeperKing
  • Start date Start date
L

LavaCreeperKing

Guest
Hello I was wondering if anyone could help create 2D physics from scratch. I think I can figure it out for the most part, but I don't know how to do things that involve rotating collision boxes/masks. Say for example I have a pinwheel in the shape of a + . This pinwheel needs to be able to rotate, but I need to be able to have objects collide with it at all degrees of rotation. Say I have a player walk into the pinwheel, the pinwheel should rotate as the player pushes on it. My question is how do I modify the collision of the pinwheel so the player or other objects are able to still collide with it as it is rotating?

A good example of the physics that I want to recreate can be found in this video
View: https://www.youtube.com/watch?v=UjBTU02cCVY


This video shows you everything that I wan to do. My problem I I just don't know how to rotate the collision boxes(or whatever they are called) of objects to be able to create the physics.

Continue reading...
 
Back
Top