Search found 4 matches

by vanush
Sun Apr 15, 2018 7:18 pm
Forum: R.U.B.E discussion
Topic: Setting custom mass
Replies: 2
Views: 15937

Re: Setting custom mass

Thanks! This should be an acceptable workaround.
by vanush
Fri Apr 13, 2018 3:47 pm
Forum: R.U.B.E discussion
Topic: Keeping desired image size
Replies: 1
Views: 14770

Re: Keeping desired image size

Got it with image drop hook script and having a pixel to meter(ptm) ratio set in world's custom properties: print("Adjusting image size"); image[] images = getDroppedImages(); for (uint i = 0; i < images.length; i++) { image img = images[i]; img.setHeight(img.getPixelHeight() * getWorld()....
by vanush
Wed Apr 11, 2018 2:28 pm
Forum: R.U.B.E discussion
Topic: Setting custom mass
Replies: 2
Views: 15937

Setting custom mass

Box2d supports body mass that is not coupled with the density of its fixtures, so that you can set the mass data manually.
In RUBE when I set the mass of a body it changes the density of body's fixtures. Is there a way to set it without affecting fixtures?
by vanush
Wed Apr 11, 2018 2:20 pm
Forum: R.U.B.E discussion
Topic: Keeping desired image size
Replies: 1
Views: 14770

Keeping desired image size

Currently when I drop an image into the RUBE scene, it's height is set to 1meter/point and the width based on aspect ratio. Is there a way to change this behavior? For example it would be good to have a pixel to meter ratio property in the settings so that when one adds an image its size is correcte...