Search found 861 matches

by iforce2d
Wed Oct 25, 2017 10:26 pm
Forum: R.U.B.E discussion
Topic: chipmunk json loader
Replies: 3
Views: 18911

Re: chipmunk json loader

Chipmunk loader is here: https://www.iforce2d.net/rube/?panel=loaders
Note it is not a complete or official implementation, just something I made one weekend as a quick test.
by iforce2d
Tue Oct 17, 2017 9:46 am
Forum: Box2D tutorial discussion
Topic: Rotation of an object in the other side
Replies: 4
Views: 23178

Re: Rotation of an object in the other side

Yes, I think that would work ok.
by iforce2d
Sun Oct 15, 2017 6:06 pm
Forum: Box2D tutorial discussion
Topic: Rotation of an object in the other side
Replies: 4
Views: 23178

Re: Rotation of an object in the other side

What language are we talking about? If you run your program as as debug build, you should be able to use the debugger to step into the code while it is running to see what it is doing. Is it just a single body you want to flip? Replacing the whole body could be a lot of trouble because you need to m...
by iforce2d
Tue Oct 10, 2017 11:28 am
Forum: R.U.B.E discussion
Topic: axes of coordinates R.U.B.E to box2d sdl2
Replies: 9
Views: 38795

Re: axes of coordinates R.U.B.E to box2d sdl2

What line of that code causes the b2BlockAllocator crash? Is it the World->CreateBody line? Is the World variable valid? The recommended method for merging multiple RUBE scenes into one world at runtime is shown on the main b2dJson page: http://www.iforce2d.net/b2djson/#merging I don't understand wh...
by iforce2d
Sat Oct 07, 2017 5:43 pm
Forum: R.U.B.E discussion
Topic: axes of coordinates R.U.B.E to box2d sdl2
Replies: 9
Views: 38795

Re: axes of coordinates R.U.B.E to box2d sdl2

1. No.
2. Yes of course, that is the whole point of having an example.
3. I would start with the example and work from there. Or at least, take a look at how the example does things and maybe you can modify your existing code a little.
by iforce2d
Fri Oct 06, 2017 9:12 am
Forum: R.U.B.E discussion
Topic: axes of coordinates R.U.B.E to box2d sdl2
Replies: 9
Views: 38795

Re: axes of coordinates R.U.B.E to box2d sdl2

Have you looked at the example SDL2 loader? Maybe it will help: https://www.iforce2d.net/rube/?panel=loaders These threads may also be relevant: http://www.iforce2d.net/forums/viewtopic.php?f=6&t=542 http://www.iforce2d.net/forums/viewtopic.php?f=6&t=291 http://www.iforce2d.net/forums/viewto...
by iforce2d
Thu Sep 21, 2017 6:38 am
Forum: R.U.B.E discussion
Topic: Load hero from to game from RUBE
Replies: 1
Views: 15258

Re: Load hero from to game from RUBE

Normally you would make the character in one file, and the level in another file.
You can load a file into an existing world using the method mentioned on this page in the section titled "Merging files into the same world"
http://www.iforce2d.net/b2djson/#merging
by iforce2d
Thu Aug 31, 2017 3:32 am
Forum: R.U.B.E discussion
Topic: RUBE & Code::Blocks
Replies: 4
Views: 22367

Re: RUBE & Code::Blocks

What filepath did you tell it to use? If you don't give a full path, it will look in the current working working directory, at least on Windows and Linux. On Mac there is some crazy system that I don't fully understand.
by iforce2d
Fri Aug 11, 2017 1:18 am
Forum: R.U.B.E discussion
Topic: Corona Support and walking character
Replies: 1
Views: 15389

Re: Corona Support and walking character

Last I checked Corona does not expose enough of the underlying Box2D features to use RUBE to its full capability. https://www.iforce2d.net/forums/viewtopic.php?f=6&t=238 In general to load a RUBE scene you need to parse the JSON text, and use that structure to create a world and execute function...
by iforce2d
Fri Aug 11, 2017 12:58 am
Forum: R.U.B.E discussion
Topic: RUBE & Code::Blocks
Replies: 4
Views: 22367

Re: RUBE & Code::Blocks

There is not much to go on here. Surely "can't get to build" involves an error message of some kind? The b2dJson is a handful of files you add to your program. It sounds like this question is more about code:blocks and how to set up a project, compile and link etc, rather than Box2D or RUB...