Search found 25 matches
- Sun Oct 08, 2017 11:58 am
- Forum: R.U.B.E discussion
- Topic: axes of coordinates R.U.B.E to box2d sdl2
- Replies: 9
- Views: 38802
Re: axes of coordinates R.U.B.E to box2d sdl2
I try loader from rube-C++-sample-SDL2 and got: Screenshot_1.png I dont use b2dJsonImage_SDL2 ( SDL_Rect texr; texr.w = (int)(w * aspectScale * s * (flip?-1.0f:1.0f));), I have made exactly the same (use setScale(-1, -1);) for image But I have not found in rube-C++-sample-SDL2 how to deploy all of t...
- Sun Oct 08, 2017 6:58 am
- Forum: R.U.B.E discussion
- Topic: axes of coordinates R.U.B.E to box2d sdl2
- Replies: 9
- Views: 38802
Re: axes of coordinates R.U.B.E to box2d sdl2
In an example rube-C++-sample-SDL2 : b2World* World; World= car.readFromFile("car.json", errorMsg); if i try to creat another object: b2Body *body; b2BodyDef bdefw; b2FixtureDef fdef; b2PolygonShape rectb; bdefw.angle = (float) (angl*M_PI/180); bdefw.position.Set((float32) x/SCALE, (float3...
- Fri Oct 06, 2017 4:32 pm
- Forum: R.U.B.E discussion
- Topic: axes of coordinates R.U.B.E to box2d sdl2
- Replies: 9
- Views: 38802
Re: axes of coordinates R.U.B.E to box2d sdl2
1) will I need to make the likeness as in the example?
2) did the example contains ready b2dJson ??
3) I took here https://github.com/iforce2d/b2dJson for C++, maybe I need to change some file and not try to move from rube-C++-sample-SDL2 in my project. What do you think about this?
2) did the example contains ready b2dJson ??
3) I took here https://github.com/iforce2d/b2dJson for C++, maybe I need to change some file and not try to move from rube-C++-sample-SDL2 in my project. What do you think about this?
- Thu Oct 05, 2017 5:38 pm
- Forum: R.U.B.E discussion
- Topic: axes of coordinates R.U.B.E to box2d sdl2
- Replies: 9
- Views: 38802
axes of coordinates R.U.B.E to box2d sdl2
How to adjust the program to the correct axes ??? I Have to do the FLIP for proper display and placement of the object in the game
- Tue Sep 19, 2017 5:11 pm
- Forum: R.U.B.E discussion
- Topic: Load hero from to game from RUBE
- Replies: 1
- Views: 15265
Load hero from to game from RUBE
Tell me, what will be the code hero in a level from a json file (or any other option supported by R. U. B. E). For example - If a hero consists of 10 bodies.
in the description https://www.iforce2d.net/b2djson/ - every body and the connection need to upload separately? then combine... Yes?
in the description https://www.iforce2d.net/b2djson/ - every body and the connection need to upload separately? then combine... Yes?