Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Friction in a circle doesn't work — Gideros Forum

Friction in a circle doesn't work

CesarCesar Member
edited May 2016 in General questions
Hello Guys,

I am practicing with Box2d basics example.

I apply a linear impulse to the ball:
--create ball
local ball = self:ball(100, 100)
self:addEventListener(Event.TOUCHES_END, function(event)
	x,y = ball:getPosition()
	ball.body:applyLinearImpulse(200, 0, x,y)
end, self)
And the ball body friction doesn't work. The ball slides on the bottom without stopping until hitting the left or right wall.

I have tested with rectangles bodies and the friction worked fine. So I suspect of circle body.

Any idea?

Thank you.

Comments

Sign In or Register to comment.