3D Ball Adventure (JigLibMotionSpringCamera3D) Part 3

February 22nd, 2009 by Devin Reimer

3D Ball Adventure Version 3 Screenshot

Over the passed week and an half, I went through almost every line of code in this project and rewrote and refactored it. After a bit of work, I discovered the cause of the major camera bug that would cause the camera to freak out when pointed north. This issue is now fixed. The springiness of the camera has also been loosened up a bit, so the camera motion is a lot smoother.

Since I got the new camera system to work, I decided to make it a nice and programmer friendly class called JigLibMotionStringCamera3D. I am aware that this name is terrible and long, but it describes the camera’s function perfectly. The camera uses a JigLibFlash RigidBody object as its target and moves based on its motion not the direction it is facing. Part of the camera’s smooth motion is achieved by extending the SpringCamera3D class. While this camera does have specific job, I know that there are a lot of uses for a camera like this. If you find a cool use for it, drop me a line.

The viewable area of this version has been increased and a little challenge has been added to the end of the level for those who played the last version.

If anyone has created any cool levels using the xml level creator send me an email. I would love to incorporate them in my next version.

To play the demo click here.

To get the source click here.

Note: You will need Papervision3D, JigLibFlash and Tweener to compile the source.

Update: The swf example has been updated to fix an issue when viewed on any page but the main page. Thanks to Chris Hill for pointing this out.

Tags: , , , , , , , , ,

7 Responses to “3D Ball Adventure (JigLibMotionSpringCamera3D) Part 3”

  1. Chris Hill Says:

    HI, your latest version 3 is missing a file:

    http://blog.almostlogical.com/tag/springcamera3d/workingExamples/3DBallAdventureV3/xml/AdvancedLevelInfo.xml

    I played v2, pretty cool stuff!
    Thanks!
    c

  2. Andre Anaya Says:

    Cool!!
    I thought a bit dificult move the ball due camera position when turning. However it’s a great example using JibLib

  3. Milan S. Says:

    Hello,

    I think we have been working on separately on same type of game. :-)
    Have you seen this ?
    http://blog.3datweb.com/post/Balanced-ball-game.aspx

    Bye M.

  4. Flash Summer Camp Berlin - Think In 3D Workshop - Follow-up | analogdesign’s lab | Cedric M. (aka maddec) Says:

    [...] Jiglib 3D Real Time Physics Engine ported from c++, is an engine which adds physic qualities to your scene, the same as Havok works for 3ds Max. There is also WOW Physic engine based on APE, but recently Jiglibs brought a lot of excitement within the Flash 3D community. The question is: has Flash Player power enough to manage Real Time 3D rendering AND Real Time Physic simulation? Here is a game demo using this engine: 3D Ball Adventure. [...]

  5. Collection of jiglibflash examples/tutorials 3d physic engine | JiglibFlash - 3D Physics Engine AS3 Says:

    [...] http://blog.almostlogical.com/2009/02/22/3d-ball-adventure-jiglibmotionspringcamera3d-part-3/ [...]

  6. Robert Boyd Says:

    You did a really nice job with this game. The gameplay was a little rough in the early versions, but getting pretty great in this version. Thanks for sharing it.

  7. Bobby Berberyan Says:

    Great Job!!! My brother and I play this demo all the time.

Leave a Reply