Physics

183 views

Published on

Published in: Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
183
On SlideShare
0
From Embeds
0
Number of Embeds
5
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Physics

  1. 1. Physics by Itsara Thipwatana e-mail: ojt26@hotmail.com Tel. 089-618-3269
  2. 2. local physics = require "physics” physics.start() local circle = display.newCircle(0,0,40) circle.x = 150 circle.y = 100 physics.addBody(circle, {density = 1.0, friction = 0.3, bounce = 0.5}) local foot = display.newRect(0,0, display.contentWidth, 20) foot.y = display.contentHeight – 10 physics.addBody(foot, "static", {density = 1.0, friction = 0.3, bounce = 0.5})

×