This example is the first step towards creating an actual track that objects can move along. I've combined the curve creation interface with a "physics engine". You can drag the points to create your curve, but now there's a ball (eventually this will be your cart/ship) that can be dropped onto the track. Click the "drop ball" button to generate the track from the points along your curve. You will see that the track, that was simply a visual representation up until this point, now exists and an "object in space" that other objects in the game world can be placed upon.
The sample file can be found here
NOTE: The ball ban be dragged, dropped and tossed. You will notice that the track behaves much like many platforms in classic (and new, I guess) games where the ball can pass through the bottom but cannot fall through the top.
Tuesday, March 4, 2008
Subscribe to:
Comments (Atom)