Search found 54 matches

by rileyrg
Fri Aug 05, 2016 12:41 pm
Forum: R.U.B.E discussion
Topic: Importing an external rube object
Replies: 6
Views: 23931

Re: Importing an external rube object

Just for completion this is now merged into my libgdx loader. And works fine. Body importedBee = b2dm.json.getBodyByPathAndName("bee1","beezy"); GameBody ib = new GameBody(importedBee); importedBee = b2dm.json.getBodyByPathAndName("bee2","beezy"); ib = new Gam...
by rileyrg
Thu Aug 04, 2016 4:37 am
Forum: R.U.B.E discussion
Topic: Importing an external rube object
Replies: 6
Views: 23931

Re: Importing an external rube object

Was a case of finding compatible collection classes in the main and using them. Libgdx has its own suite of collections that reduce / eliminate garbage collection . That said I was a complete java noob bsck when and possibly there was a way to use it having altered nothing. Just getting back into my...
by rileyrg
Wed Aug 03, 2016 6:21 pm
Forum: R.U.B.E discussion
Topic: which loader should I use for R.U.B.E editor?
Replies: 2
Views: 13377

Re: which loader should I use for R.U.B.E editor?

I've just merged the latest load objects by path updates. I havent tested that functionality yet but it was working prior. RUBE used to create layouts seen here and loaded into libgdx using that git repo of mine : https://www.youtube.com/watch?v=vx341DhW9Xs
by rileyrg
Wed Aug 03, 2016 4:26 pm
Forum: R.U.B.E discussion
Topic: Merged object by path for LIBGDX b2djson loader
Replies: 0
Views: 32382

Merged object by path for LIBGDX b2djson loader

I've finally merged the object reference by path changes added in April to the main b2djson trunk for the LibGDX compatible loader. I haven't tested it.

https://github.com/rileyrg/b2dJson
by rileyrg
Tue Apr 26, 2016 1:46 pm
Forum: R.U.B.E discussion
Topic: Getting Started - Step1?
Replies: 2
Views: 13190

Re: Getting Started - Step1?

Ive created a symlink "rube" in my local bin directory to the ".wrapper" in the rube dir. FWIW my .wrapper is as follows: #!/bin/sh here="${0%/*}" LD_LIBRARY_PATH="$here"/lib:"$LD_LIBRARY_PATH" export LD_LIBRARY_PATH export LANG=en_US.utf8 export LC_...
by rileyrg
Mon Apr 25, 2016 10:42 am
Forum: R.U.B.E discussion
Topic: Importing an external rube object
Replies: 6
Views: 23931

Re: Importing an external rube object

C++ loader? I'm using the json java loader that I ported over to libgdx. Am I confused? (ie what do I need to do to get this functionality)
https://github.com/rileyrg/b2dJson
by rileyrg
Sat Apr 23, 2016 7:05 am
Forum: R.U.B.E discussion
Topic: Importing an external rube object
Replies: 6
Views: 23931

Importing an external rube object

When I add an object the rube editor correctly shows it in my scene. It has a name attribute. Now I want to reuse one body externalised and used as an imported object multiple times in a single scene. how? eg I have "guy" which is an body with a few fixtures in guy.rube. The body is called...
by rileyrg
Tue Feb 02, 2016 7:35 pm
Forum: R.U.B.E discussion
Topic: json and Color
Replies: 1
Views: 13413

json and Color

Total mental wipeout here. Just come back to coding my little app after a few months away. What's the way to read in a color property from "world values" from the export b2djson json in Java? (I want to set a custom ambient light property on the scene properties)
by rileyrg
Mon Aug 17, 2015 4:00 pm
Forum: R.U.B.E discussion
Topic: moving fixtures to another body
Replies: 1
Views: 6491

moving fixtures to another body

Probably something really obvious but.... How do I detach a fixture from one body and add it to another in the RUBE Editor? There is no no body field in the fixture attribute pane.
by rileyrg
Wed Jul 29, 2015 4:23 pm
Forum: Feature requests
Topic: Quick export : JSON to same dir as rube
Replies: 2
Views: 18127

Re: Quick export : JSON to same dir as rube

Its to ensure that per opened file the export json goes to the same place as you originally exported it (or defaults to the dir for that scene's rube file) as opposed to possibly overwriting another scene's. If you open two scenes and edit them and save them then export you'll see that export doesn'...