[Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [32047] trunk/blender/source/blender/ blenkernel/intern/unit.c: patch [#23796] Full support for unit buttons: area, volume, mass, velocity and acceleration

Lorenzo oni.lore at tiscali.it
Wed Sep 22 15:18:43 CEST 2010


On 22/09/2010 12:29, Carsten Wartmann wrote:
> Am 22.09.2010 04:36, schrieb Campbell Barton:
>> Revision: 32047
>>             http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=32047
>> Author:   campbellbarton
>> Date:     2010-09-22 04:36:14 +0200 (Wed, 22 Sep 2010)
>>
>> Log Message:
>> -----------
>> patch [#23796] Full support for unit buttons: area, volume, mass, velocity and acceleration
>> by Lorenzo Tozzi (oni_niubbo)
>
> Very nice!
>
> I wish that I could also enter "2cm/s" or "30°/s" into the BGE Logic
> Bricks. Of course the Fps setting in the World needs to be taken into
> account for this.
>
> Cheers,
> Carsten

For speeds and accelerations I've implemented only a small subset of units:
  * m/s and km/h for metric system
  * ft/s and mph for imperial system
  * m/s² for metric system
  * ft/s² for imperial system

as opposed to lengths, areas etc. that have a range going from 
kilometers to microns.

I did this because if you change the scale (Scene menu->Units->Scale) 
you will probably end up using them all.

But velocity (as acceleration) isn't scaled. So I thought m/s and km/h 
were enough.

On the other end implementing cm/s, mm/s etc. is trivial. The only hairy 
part is the imperial system. I don't know if it's good to bring that on 
par adding in/s yd/s etc.

And for unit "°/s", we need a new unit type (angular speed), so 
implementing it is a bit more difficult. Do we need other unit types? 
Like force, pressure etc.?

Lorenzo Tozzi


More information about the Bf-committers mailing list