Search found 26 matches
- Wed Oct 21, 2015 4:47 pm
- Forum: R.U.B.E discussion
- Topic: Need help making a motorized wheel
- Replies: 2
- Views: 10482
Need help making a motorized wheel
I need help making a motorized wheel. I'm using R.U.B.E. with the Box2D plugin for Phaser. I tried getting help at http://www.html5gamedevs.com/topic/17703-how-to-make-a-motorized-wheel-using-box2d-plugin/ (more details are in that post) but haven't had any luck. I have a wheel body, a gear body (a ...
- Fri Oct 09, 2015 6:18 pm
- Forum: R.U.B.E discussion
- Topic: How to scale an image to exactly fit a body?
- Replies: 2
- Views: 8379
Re: How to scale an image to exactly fit a body?
Thanks for all the pointers! So far I've been having success with scripts to size and position elements so I should be able to pull this off.
- Wed Oct 07, 2015 4:28 pm
- Forum: R.U.B.E discussion
- Topic: How to scale an image to exactly fit a body?
- Replies: 2
- Views: 8379
How to scale an image to exactly fit a body?
I apologize if this has already been answered, but the forum keeps telling me "The following words in your search query were ignored because they are too common words" no matter what I put! Suppose I have a scene that contains a bunch of circular bodies at different sizes and I'd like to u...
- Tue Oct 06, 2015 3:42 pm
- Forum: R.U.B.E discussion
- Topic: Bodies Size
- Replies: 6
- Views: 14860
Re: Bodies Size
The script works great! I updated your code so I can enter in the original pixel values and it will translate to meters for me
Will probably do the same to place and rotate my objects.
Code: Select all
float ppm = 50;
float w = width / ppm / 2;
float h = height / ppm / 2;
- Tue Oct 06, 2015 3:20 pm
- Forum: R.U.B.E discussion
- Topic: Bodies Size
- Replies: 6
- Views: 14860
Re: Bodies Size
Thanks so much for the insight and the script! I was thinking in bed last night about modifying the vertices, so I was going down the right path :) This whole thing has been a bit hard to wrap my head around since I'm so used to working in pixels rather than meters/units and I created my Flash game ...
- Mon Oct 05, 2015 11:32 pm
- Forum: R.U.B.E discussion
- Topic: Bodies Size
- Replies: 6
- Views: 14860
Re: Bodies Size
Did you ever figure this out? I'm not finding an obvious way to do this in the help or the videos. Maybe I'm looking in the wrong spots. I need to enter in precise widths and height manually. Scaling with the GUI will not work for me.