Terrain is pretty simple. Just take a black and white image (a height map), and use it to create a JTerrain.
var level : JTerrain = physics.createTerrain(heightmap.bitmapData, texture); I'm not sure what you mean by rotating level, but here's a link to the source for the game if you want to poke through it. http://positlabs.com/files/code/drive/src.rar If you have any suggestions for improvements, I'm all ears. I think my next task is going to be a level editor that can use multiple materials. It should be a nice challenge! On Apr 17, 7:31 am, "[email protected]" <[email protected]> wrote: > I would be interested to know how you made the terrain and rotating > sky. > > On Apr 16, 6:27 pm, Josh Beckwith <[email protected]> wrote: > > > > > > > > > Hey svenk, check out the car game I've been working on. I started with > > the jiglib example and have been building out from there. > > >http://positlabs.com/files/code/drive/ > > > If you're curious about how I did something in the game, I'd be happy > > to explain. > > > On Apr 15, 6:34 am, "[email protected]" <[email protected]> > > wrote: > > > > It's just something I put together real fast for tests. If you flip > > > over just refresh your browser window and start again. > > > > The stats window is from JigLib. > > > > Best, > > > Sven > > > > On Apr 15, 3:25 pm, Peter Kapelyan <[email protected]> wrote: > > > > > Car turned over when I just started :( > > > > > Nice little stat window, did you make that? > > > > > -Pete > > > > > On Fri, Apr 15, 2011 at 9:21 AM, [email protected] < > > > > > [email protected]> wrote: > > > > > Hey guys, > > > > > > here is a quick demo I put together of a 3D car game with physics. > > > > > Powered by molehill ;) > > > > > >http://www.mind-probe.com/as3/molehill/ > > > > > > Best, > > > > > Sven > > > > > -- > > > > ___________________ > > > > > Actionscript 3.0 Flash 3D Graphics Engine > > > > > HTTP://AWAY3D.COM
