Jump to content

April 2017 »

S M T W T F S
      1
2345678
9101112131415
16171819202122
23242526272829
30       
- - - - -

Physics and lighting fun



4: Adsense

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

Aug 26 2011 08:21 AM
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?).
Aug 27 2011 12:02 PM
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. :)

Note: GameDev.net moderates comments.