asked Apr 18 '10 at 11:57 AM
1)You can add a plane or terrain across the scene and have the camera look down the y-axis, gravity should keep everything on the same level, you might also try putting an invisible collider across the top of everything to form a low ceiling maybe. Putting the camera into orthographic view makes for a 2D effect.
Better yet use a configurable joint to restrict movement in one of the planes and your objects will always be in 2D movement.
2)If you are using the built in physics engine then you can use the drag variable of the rigid body for inertia, angular drag also slows down spinning motions. Use rigidbody.addforce for thruster like movement. There's an add torque function as well but it's easier just the manipulate the rotation directly.
Here's a 2D game tutorial complete with assets
Whenever I'm making a Rigidbody that's supposed to operate is 2D I just go into the Rigidbody's constraint tab and click on Y in "freeze Position" then X and Z in "freeze Rotation"
This stops the object from moving up and down plus halts rotation coming off the plane. If it's not a Rigidbody then you can just set position.y = some fixed value and rotation = fixed except yrotation
answered Jul 17 '12 at 01:42 AM