Ok now the collision shape inherit the scale from the Transform of the game object and it own transform.
in the example the transform scale is 50.0, 0.5, 50.0
and the collision shape is 1, 1, 1
the visual shape is (50.0 * 1, 0.5 * 1, 50.0 * 1)
now I will make that when any of the field is edited in the editor, the collision shape reflect that change. Is this goes ok then I will do the same for the transform offset.
the goal is the user can manipulate the collision at will, and a the same time the collision do no have to be resized if the use change the gameobject transform.
I am loving this now
if this goes well we can use Unity as the Engine Dev environment to try cool stuff, which is something bee looking for a while.
edit:
that was easy, now if we edit the transform scale field, the collision is updated to reflect the change
there is one error, which is that newton does not accept negative of zero scale, I have to add some clamping, but that should be easy.
There is one more little thing left to figure out, the control when it take over by the custom script, lose some functionality, like refreshing, I assume that the there parameter on the script to force to refresh, but I do not see any example. Not a big problem, but it would be nice to have identical to the normal interface.