Search found 43 matches

by noway
Thu Mar 31, 2011 7:42 pm
Forum: Support and Development
Topic: Why doesn't # decrease after remove?
Replies: 10
Views: 5064

Re: Why doesn't # decrease after remove?

BTW, here you can find some nice free art for galaga-like game.
Also maybe you'll be able to find there some sounds and models for other spaceships.
by noway
Sun Mar 27, 2011 2:40 pm
Forum: Support and Development
Topic: Question about Body:setLinearVelocity
Replies: 4
Views: 3647

Re: Question about Body:setLinearVelocity

Sometimes Box2D doesn't update non-moving (sleeping) bodies ... Better use body:setAllowSleeping Thanks, that solved the problem. This might produce somewhat strange-looking collision responses. ... So ya, ApplyForce is probably the best way to go Well, at first i thought that it would be possible ...
by noway
Sun Mar 27, 2011 12:25 pm
Forum: Support and Development
Topic: Question about Body:setLinearVelocity
Replies: 4
Views: 3647

Question about Body:setLinearVelocity

Hello. I have been confused with behavior of setLinearVelocity function. Here is the code i use to move ball right and left when appropriate keys are pressed. The problem is that when initial ball speed is 0 i.e. ball.b:setLinearVelocity(0,0) -- doesn't work. it doesn't move anywhere. But if I set n...