Jump to content

  • Log In with Google      Sign In   
  • Create Account





Physics and lighting fun

Posted by etodd, 26 August 2011 · 519 views

Sorry to post two videos in quick succession, but this was too fun not to record!
http://www.youtube.com/watch?v=wcB4skTk8BY



Mirrored on my blog




Very cool! I've been playing around a bit with BEPU as well, but I haven't done anything that cool yet. I'd be curious to know how you are breaking things apart like that, as well as what you are using to handle your camera (the standard BEPU CharacterController, the simplified CharacterController, or something more homegrown?).
The main environment is just a collection of static boxes that I replace whenever a change is made. I'm using MorphableEntities for the movable objects, so instead of deleting the entity and replacing it with a new one, I can just replace the collision data. I use a home-grown algorithm to find the (hopefully) smallest number of boxes to construct each shape.

For the camera, I'm using the BEPU simple character controller, bu it's very limited. For example, if you're walking on a movable object that has a floor and a wall, and you walk into the wall, it will actually start moving the object, when it shouldn't. I'll have to replace it eventually anyway, in order to implement more parkour elements. :)

May 2016 »

S M T W T F S
1234 5 67
891011121314
15161718192021
22232425262728
293031    
PARTNERS