X2o (activity): Difference between revisions

From OLPC
Jump to navigation Jump to search
(New page: Category:Gamescategory:softwarecategory:physicscategory:science {{olpcboxtop|toptext=[[{{PAGENAME}}|Physics]]}} {{ OBX activity | 40px|extr...)
 
No edit summary
Line 1: Line 1:
[[Category:Games]][[category:software]][[category:physics]][[category:science]]
[[Category:Games]][[category:software]][[category:physics]][[category:science]]
{{olpcboxtop|toptext=[[{{PAGENAME}}|Physics]]}}
{{olpcboxtop|toptext=[[{{PAGENAME}}|x2o]]}}
{{ OBX activity | [[Image: Activity-physics.svg|40px]]|extra}}
{{ OBX activity | [[Image: Activity-physics.svg|40px]]|extra}}
{{ OBX source dev|activities/physics}}
{{ OBX source dev|activities/x2o}}
{{ OBX xobundle|http://dev.laptop.org/~bjordan/Physics-0.1.xo|Physics-0.1}}
{{ OBX xobundle|http://dev.laptop.org/~alexlevenson/x2o.xo|x2o}}
{{ OBX team | [[User:Bjordan|Brian Jordan]], [[User:alexlevenson|Alex Levenson]], [[User:Crazy-chris|Chris Hager]]}}
{{ OBX team | [[User:alexlevenson|Alex Levenson]],}}
{{olpcboxbottom}}
{{olpcboxbottom}}


= Physics =
= x2o =
[[Image:PhysicsElements.png|160px|left]]
[[Image:PhysicsElements.png|160px|left]]
Physics is a physical world simulator and playground -- you can add squares, circles, triangles, or '''draw your own shapes''', and see them come to life with forces (think '''gravity''', Newton!), friction ('''scrrrrape'''), and inertia (ahh, '''slow down'''!).
Physics is a physical world simulator and playground -- you can add squares, circles, triangles, or '''draw your own shapes''', and see them come to life with forces (think '''gravity''', Newton!), friction ('''scrrrrape'''), and inertia (ahh, '''slow down'''!).

Revision as of 20:34, 14 July 2008

Activity-physics.svg
.xo Bundlex2o.xo

x2o

PhysicsElements.png

Physics is a physical world simulator and playground -- you can add squares, circles, triangles, or draw your own shapes, and see them come to life with forces (think gravity, Newton!), friction (scrrrrape), and inertia (ahh, slow down!).

We also plan to add forces such as: magnetism, springs, and motors

Shape Drawing

PhysicsTriangleDraw.png PhysicsSquareDrawing.png PhysicsCircleDrawing.png

Get Physics!

Click this link in browse: Physics-0.2.xo OR (for the newest version...) Open up the Terminal activity and follow these steps:

sudo yum install git
cd ~/Activities/
git clone git://dev.laptop.org/activities/physics
mv physics Physics.activity
# Then press ctrl + alt + erase to restart sugar.
# The newest version of physics is installed! (but may not be stable!)

Old versions

Physics-0.1.xo

Usage

Drawing objects

    • Boxes
      • Non-rotated box of any dimension
      • Use: click (top-left corner) drag + release (bottom left corner) -- like dragging a selection box in a photo editor
    • Circles
      • click (center) drag + release (outer edge)
    • Triangles
      • Equilateral triangle of any size and rotation
      • Use: click (center of base) drag + release (tip)
    • Polygons
      • Click for each point of the polygon
      • Use: Right click to end OR left click in the circle around the original point
    • Magic Pen
      • Use: Click and hold to draw any shape you'd like!

Using tools

  • Grab - Drag existing objects around with the mouse
  • Connect
    • Click on any object, drag to another object + release to create a distance joint
    • Click on any object to add a revolute joint (like a push pin!)
  • Destroy - Click on an object to destroy it, or draw a line of destruction--destroying everything in its path!

Class Challenges

Egyptian Pyramid

How did the Egyptians build the pyramids using just human effort? They didn't have cranes, trucks or even cars. Make a block with a high mass and use a weak grab tool. How can you get it across the screen?

Vertical Tennis

Can you use motors to make a device that hits a ball up and down?

Plan to Add / Requests

These are the features we would like to add, and if you think you can help us out please do!

  1. There are some tools that need to be added
    • fixate tool (object doesn't move / hangs in space)
    • More complex joint tool
      • Need to implement gears, motors, prismatic and revolute joints in elements (already implemented in Box2D)
  2. Need a way to change the properties of an object
    • density
    • rotation
    • strength (for breaking)
    • bounciness
    • friction
    • color
  3. More physics!
    • Joints + Motors
    • Magnetism
    • Springs -- via prismatic joints?
    • Breakable bodies
    • Note: We are using a rigid body simulator (box2D). All of the above need to be implemented using forces on rigid bodies. Breakable bodies can be achieved a few different ways:
      1. When a body 'breaks' it is removed from the physics engine and some kind of graphical animation indicates that it has been broken and dissipated
      2. When a body 'breaks' it is removed from the physics engine and is replaced by some new (smaller, fragment-like) rigid bodies (kind of like an explosion)
      3. When a body 'breaks' it is removed from the physics engine, it's shape is calculated and then split into smaller polygons which are then added as rigid bodies
  4. We need a way to save / export the state of a scene
    • Should set up a standard format for an elements scene
  5. Need to add objectives and limits
    • Incredible machine style objectives (get the ball into the basket, knock the triangle off the screen, etc)
    • You only have 4 boxes, 1 meter of magic pen, and one triangle, etc.

Photographs

Housegolf.jpg PhysicsNew3.png Bridgependulum.jpg PhysicsMesh.jpg Physics-1.JPG Physics-2.jpg Physics-3.jpg PhysicsNew1.png PhysicsNew2.png