I am having a problem with the physics.addbody function:
Here is my code:
physics = require(“physics”)
ball= display.newImage (“redball.png”)
ball.x = 670
ball.y = 915
ball.rotation=-90
ball.xScale=1.5
ball.yScale=1.5
physics.addBody(ball, “static” ,{ density = 1.0, friction = 0.7, bounce = 0.8})
In the Terminal I get:
Last login: Wed Jan 19 23:04:07 on ttys000
/Applications/Corona.243/Corona\ Terminal ; exit;
MacBook:~ christoffer$ /Applications/Corona.243/Corona\ Terminal ; exit;
Copyright © 2009-2010 A n s c a , I n c .
Version: 2.0.0
Build: 2010.243
The file sandbox for this project is located at the following folder:
(/Users/christoffer/Library/Application Support/Corona Simulator/TestApp-CE0257E1F6336E86B6F2D643F1BABE67)
/Applications/Corona.243/Corona Terminal: line 9: 313 Bus error “$path/Corona Simulator.app/Contents/MacOS/Corona Simulator” $*
logout
Maholm
[import]uid: 5717 topic_id: 5221 reply_id: 305221[/import]