I have a circle that I move up hill (30 deg) and gravity set to 9.8.
The circle has density of 2 and little bounce,friction…
The hill was created with points from physic editor.
AS I move the circle up the hill gravity doesnt effect the circle much, even if I increase the gravity setting and/or density of the circle.
I touch a button and move the circle 2 pixels at a time in just X direction which easily gets up the hill. It cant get up the hill at 1 pixel at a time.
How can I more realistically simulate moving an object up a hill?
[lua]physics.start()
physics.setGravity(0,10) ;
local platform={}
local scaleFactor = 1.0
local physicsData =(require “trifloor”).physicsData(scaleFactor)
platform[1] = display.newImage(“trifloor.png”)
physics.addBody( platform[1],“static”, physicsData:get(“trifloor”) )
platform[1].y= _H- platform[1].height/2 ;
platform[1].x=_W/2 +120;
platform[1].myName = “p1”;
physics.addBody (myballImg, {bounce=.3, density=10, radius=16,friction=.3})[/lua] [import]uid: 138547 topic_id: 25809 reply_id: 325809[/import]
