Search found 861 matches

by iforce2d
Tue Jan 15, 2013 6:42 am
Forum: Box2D tutorial discussion
Topic: bike/motorcycle with character riding
Replies: 1
Views: 7091

Re: bike/motorcycle with character riding

Thanks! Well that is a very broad question. Perhaps you could let us know what parts you are having trouble with... eg. constructing the bike, what joints to use etc, control method, balancing problems, gameplay concerns, friction issues, level building, score measuring, rendering stuff... etc etc, ...
by iforce2d
Sun Jan 13, 2013 5:58 pm
Forum: R.U.B.E discussion
Topic: Please help me make this fellow stand
Replies: 6
Views: 13998

Re: Please help me make this fellow stand

hm... I set all motor speeds to zero and it was ok. What is the max torque setting, 9999 or something really high right?
by iforce2d
Sun Jan 13, 2013 4:27 pm
Forum: R.U.B.E discussion
Topic: Please help me make this fellow stand
Replies: 6
Views: 13998

Re: Please help me make this fellow stand

umm... how about zero ;)
by iforce2d
Sun Jan 13, 2013 3:08 pm
Forum: R.U.B.E discussion
Topic: Size of body
Replies: 7
Views: 19153

Re: Size of body

It comes back to the same answer though... it depends on how much of the screen you want the thing to take up. When an image is attached to a body, scaling the body will cause the image to scale with it. From the JSON you can get information about the image that lets you know where to draw it in rel...
by iforce2d
Sun Jan 13, 2013 2:49 pm
Forum: R.U.B.E discussion
Topic: Please help me make this fellow stand
Replies: 6
Views: 13998

Re: Please help me make this fellow stand

Most of the joints are set to rotate at 1 degree per second, so it will never stay completely still.
To give it more stability I think you would have to make it stand with feet apart a little.
by iforce2d
Sun Jan 13, 2013 1:21 am
Forum: Box2D tutorial discussion
Topic: Directional sensors
Replies: 7
Views: 16747

Re: Directional sensors

Yea good suggestion, when you don't want duplicates using a std::set makes things easier. It's quite easy for these checks in the contact listener to become complicated. In the top-down car tutorial I started describing something which I hoped would be relatively simple but it still ended up fairly ...
by iforce2d
Sun Jan 13, 2013 1:08 am
Forum: R.U.B.E discussion
Topic: Size of body
Replies: 7
Views: 19153

Re: Size of body

To be honest I'm not really sure what you mean. Could you give an example?
by iforce2d
Fri Jan 11, 2013 4:38 pm
Forum: Box2D tutorial discussion
Topic: How to change force which is applied during collision?
Replies: 3
Views: 10455

Re: How to change force which is applied during collision?

I think the closest thing you could do is to check what impulses were applied by the collision (in the PostSolve function you can get these (eg. http://www.iforce2d.net/b2dtut/sticky-projectiles "Deciding whether to stick") and apply some impulse of your own to try to counteract this, but ...
by iforce2d
Wed Jan 09, 2013 9:31 pm
Forum: Feature requests
Topic: My requests
Replies: 4
Views: 14330

Re: My requests

Yeah, I have that in the feature voting. I thought it would be a close second behind the custom properties, but surprisingly it is quite low. Maybe you are dealing with more complex scenes than others :)
by iforce2d
Wed Jan 09, 2013 9:24 pm
Forum: Box2D tutorial discussion
Topic: How to change force which is applied during collision?
Replies: 3
Views: 10455

Re: How to change force which is applied during collision?

I don't think there is any easy way to do that right now. This is probably the most necessary feature for Box2D to have in future releases, as I have seen many people asking on the forums about this problem, or similar things that could be solved by allowing each side of the collision to be affected...