Physics (activity): Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
 
(23 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{Activity migrated to sl.o
| download=http://activities.sugarlabs.org/en-US/sugar/addon/4193 Physics
| git=http://git.sugarlabs.org/projects/physics Physics
| homepage= http://wiki.sugarlabs.org/go/Activities/Physics Physics
}}

[[Category:Games]][[category:software]][[category:physics]][[category:science]]
[[Category:Games]][[category:software]][[category:physics]][[category:science]]
{{olpcboxtop|toptext=[[{{PAGENAME}}|Physics]]}}
{{olpcboxtop|toptext=[[{{PAGENAME}}|Physics]]}}
{{ 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/physics}}
{{ OBX xobundle|http://dev.laptop.org/~bjordan/Physics-0.1.xo|Physics-0.1}}
{{ OBX xobundle|http://dev.laptop.org/~bjordan/Physics-0.2.xo|Physics-0.2}}
{{ OBX team | [[User:Bjordan|Brian Jordan]], [[User:alexlevenson|Alex Levenson]], [[User:Crazy-chris|Chris Hager]]}}
{{ OBX team | [[User:Bjordan|Brian Jordan]], [[User:alexlevenson|Alex Levenson]], [[User:Crazy-chris|Chris Hager]]}}
{{olpcboxbottom}}
{{olpcboxbottom}}
Line 14: Line 20:


== Shape Drawing ==
== Shape Drawing ==
[[Image:PhysicsTriangleDraw.png|160px]] [[Image:PhysicsSquareDrawing.png|160px]] [[Image:PhysicsCircleDrawing.png|160px]]
[[Image:PhysicsTriangleDraw.png|160px]] [[Image:PhysicsSquareDrawing.png|160px]] [[Image:PhysicsCircleDrawing.png|160px]]

== GUI 2D Vector Tool ==
[[Image:ForceImpulse2dvectortool.png|160px]]


== Get Physics! ==
== Get Physics! ==
Click this link in browse: [http://dev.laptop.org/~bjordan/Physics-0.2.xo Physics-0.2.xo]
Click this link in browse: [http://dev.laptop.org/~bjordan/Physics-0.2.xo Physics-0.2.xo]
''OR'' (for the newest version...)
''OR'' (for the development version...)
Open up the Terminal activity and follow these steps:
Open up the Terminal activity and follow these steps:
sudo yum install git
sudo yum install git
Line 32: Line 41:
=Usage=
=Usage=
==Drawing objects==
==Drawing objects==
** '''Boxes'''
* '''Boxes''' - Rectangles of any dimension
** Use: click (top-left corner) drag + release (bottom left corner) -- like dragging a selection box in a photo editor
*** Non-rotated box of any dimension
* '''Circles''' - Circles of any radius
*** Use: click (top-left corner) drag + release (bottom left corner) -- like dragging a selection box in a photo editor
** click (center) drag + release (outer edge)
** '''Circles'''
* '''Triangles''' - Triangles (equilateral) of any size and initial rotation
*** click (center) drag + release (outer edge)
** Use: click (center of base) drag + release (tip)
** '''Triangles'''
* '''Polygons''' - As many sides as you would like. Draw your own N-gon.
*** Equilateral triangle of any size and rotation
** Use: '''Click''' for each point, '''to end''': right click, or left click in the circle around the original point
*** Use: click (center of base) drag + release (tip)
** '''Polygons'''
* '''Magic Pen'''
*** Click for each point of the polygon
** Use: Click and hold to draw any shape you'd like!
*** 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==
==Using tools==
Line 59: Line 65:
===Vertical Tennis===
===Vertical Tennis===
Can you use motors to make a device that hits a ball up and down?
Can you use motors to make a device that hits a ball up and down?

===Lotus===

Reproduce the [http://lotus-shower.isunet.edu/the_lotus_effect.htm Lotus effect] in the classroom.


=Plan to Add / Requests=
=Plan to Add / Requests=
Line 64: Line 74:
#There are some tools that need to be added
#There are some tools that need to be added
#*Need to implement gears, prismatic and revolute joints in elements (already implemented in Box2D)
#*Need to implement gears, prismatic and revolute joints in elements (already implemented in Box2D)
#Need a way to change the properties of an object (density, rotation, strength (for breaking), bounciness, friction, color
#Need a way to change the properties of an object (density, rotation, strength (for breaking), bounciness, friction, color - ticket [http://dev.laptop.org/ticket/7592 #7592]
#More physics!
#More physics!
#*Magnetism
#*Magnetism
Line 73: Line 83:
#*#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)
#*#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)
#*#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
#*#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
# Save / Exporting scene
# Save / Exporting scene - ticket [http://dev.laptop.org/ticket/7585 #7585]
#* Standard format interoperating with a browser-based playground
#* Standard format interoperating with a browser-based playground
# Objectives and constraints
# Objectives and constraints
#*Incredible machine style objectives (get the ball into the basket, knock the triangle off the screen, etc)
#*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.
#*You only have 4 boxes, 1 meter of magic pen, and one triangle, etc.
# [[/Sounds|Sonification]] - ticket [http://dev.laptop.org/ticket/7593 #7593]
# Audio!
#* See: http://n.clavaud.free.fr/processing/boucingballsmidi/video.html
#* See: http://n.clavaud.free.fr/processing/boucingballsmidi/video.html
#* and [[User:Bjordan/GSoC_2008#Physics_Sound_.28API.29]]
#* and [http://en.wikipedia.org/wiki/Sonification Sonification on Wikipedia]
# Joystick button and Physics for [[/Game-making|game-making]]


= Screenshots / Photographs =
= Screenshots / Photographs =
Line 87: Line 100:
[[Image:Physics-2.jpg|320px]] [[Image:Physics-3.jpg|320px]]
[[Image:Physics-2.jpg|320px]] [[Image:Physics-3.jpg|320px]]
[[Image:PhysicsNew1.png|320px]] [[Image:PhysicsNew2.png|320px]]
[[Image:PhysicsNew1.png|320px]] [[Image:PhysicsNew2.png|320px]]

= Videos =
[http://www.google-melange.com/gci/work/download/google/gci2013/5883999431950336?id=5718998062727168 Demonstration of how to use Physics]
[http://www.google-melange.com/gci/work/download/google/gci2013/5883999431950336?id=5639274879778816 Example of a Physics project]

= Ideas to try =

*Sorting different sized balls in to two buckets, large and small (with no jams).
*A cyclic mechanism for lifting balls from the bottom of the screen to the top, again and again.
*Try dropping 2 different mass objects at the same time.
*Experiment with pendulums of different lengths and masses.
*Try building a mechanical binary clock.
*Convert rotation into parallel motion using pistons.
*Experiment with touching one motorised circle against one pinned circle of various sizes.
*Try building a rag-doll puppet and make it dance in a convincing way.
*Use just links and circles to make a structurally sound Eiffel Tower.
*Try building a ratchet
*Try building an analogue clock face where the min hand goes around 60 times for each hour.




{{Activity page
|icon=Image:Activity-physics.svg
|genre=Math and Science
|short description=A physics playground for the XO.
|long description=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!).
|contact person=User:Alexlevenson,User:Bjordan
|activity source=http://dev.laptop.org/git?p=activities/physics
|language=English
|language codes=en
|related project=x2o
|team=User:ewjordan
|bundle URL=http://dev.laptop.org/~bjordan/Physics-0.2.xo
|activity version=0.2
|releases=7.1.2 (656), 8.1.0 (703), 8.1.1 (708)
|devel status=3. Alpha
}}

Latest revision as of 21:18, 24 November 2013

?Sugar icon}}    This activity is now hosted at the Sugar Activity Library.

The information here is likely to be out-of-date. Consult the new pages for "Physics (activity)" first:

Activity-physics.svg

Physics

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

GUI 2D Vector Tool

ForceImpulse2dvectortool.png

Get Physics!

Click this link in browse: Physics-0.2.xo OR (for the development 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 - Rectangles of any dimension
    • Use: click (top-left corner) drag + release (bottom left corner) -- like dragging a selection box in a photo editor
  • Circles - Circles of any radius
    • click (center) drag + release (outer edge)
  • Triangles - Triangles (equilateral) of any size and initial rotation
    • Use: click (center of base) drag + release (tip)
  • Polygons - As many sides as you would like. Draw your own N-gon.
    • Use: Click for each point, to end: right click, 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?

Lotus

Reproduce the Lotus effect in the classroom.

Plan to Add / Requests

These are the features we would like to add, and if you think you can help us out please do! (currently being placed into Trac)

  1. There are some tools that need to be added
    • Need to implement gears, 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 - ticket #7592
  3. More physics!
    • 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. Save / Exporting scene - ticket #7585
    • Standard format interoperating with a browser-based playground
  5. Objectives and constraints
    • 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.
  6. Sonification - ticket #7593
  7. Joystick button and Physics for game-making

Screenshots / Photographs

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

Videos

Demonstration of how to use Physics Example of a Physics project

Ideas to try

  • Sorting different sized balls in to two buckets, large and small (with no jams).
  • A cyclic mechanism for lifting balls from the bottom of the screen to the top, again and again.
  • Try dropping 2 different mass objects at the same time.
  • Experiment with pendulums of different lengths and masses.
  • Try building a mechanical binary clock.
  • Convert rotation into parallel motion using pistons.
  • Experiment with touching one motorised circle against one pinned circle of various sizes.
  • Try building a rag-doll puppet and make it dance in a convincing way.
  • Use just links and circles to make a structurally sound Eiffel Tower.
  • Try building a ratchet
  • Try building an analogue clock face where the min hand goes around 60 times for each hour.



Activity Summary

Icon: Sugar icon::Image:Activity-physics.svg
Genre: Activity genre::Math and Science
Activity group: ,|x|Activity group::x}}
Short description: Short description::A physics playground for the XO.
Description: Description::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!).
Maintainers: ,|x|Contact person::x}}
Repository URL: Source code::http://dev.laptop.org/git?p=activities/physics
Available languages: ,|x|Available languages::x}}
Available languages (codes): ,|x|Language code::x}}
Pootle URL:
Related projects: Related projects,|x|Related projects::x}}
Contributors: ,|x|Team member::x}}
URL from which to download the latest .xo bundle Activity bundle::http://dev.laptop.org/~bjordan/Physics-0.2.xo
Last tested version number: Activity version::0.2
The releases with which this version of the activity has been tested. ,|x|Software release::x}}
Development status: Devel status::3. Alpha
Ready for testing (development has progressed to the point where testers should try it out): ,|x|Ready for testing::x}}
smoke tested :
test plan available :
test plan executed :
developer response to testing :