I've been messing more. The main problem is understanding which should be the correct origin point of wheel mesh and bones.
I tried the following:
-Both Wheel Mesh and Bones origins to chassis origin
Result: Wheel mesh are placed correctly, bones are all in 1 place (monocycle like)
-Wheel mesh in their own origin, bones to chassis origin
Result: Same as above
-Wheel mesh in their own origin, Bone is the wheels origin
Result: Wheels mesh are in chassis origin, bones are correctly placed
I copy here the wheel section of the last one .dae file
<node id="WHEEL1" name="WHEEL1" type="NODE">
<translate sid="location">-0.538788 0.917304 0.02643038</translate>
<rotate sid="rotationZ">0 0 1 0</rotate>
<rotate sid="rotationY">0 1 0 0</rotate>
<rotate sid="rotationX">1 0 0 0</rotate>
<scale sid="scale">1 1 1</scale>
<node id="Bone" name="Bone" sid="Bone" type="JOINT">
<matrix sid="transform">7.54979e-8 -1 0 0.1672285 1 7.54979e-8 2.41038e-7 -2.39313e-4 -2.41038e-7 -1.81978e-14 1 -0.001710726 0 0 0 1</matrix>
</node>
</node>
<node id="wheel_1" name="wheel_1" type="NODE">
<matrix sid="parentinverse">1 0 0 0.538788 0 1 0 -0.917304 0 0 1 -0.02643038 0 0 0 1</matrix>
<translate sid="location">-0.538788 0.917304 0.02643038</translate>
<rotate sid="rotationZ">0 0 1 0</rotate>
<rotate sid="rotationY">0 1 0 0</rotate>
<rotate sid="rotationX">1 0 0 0</rotate>
<scale sid="scale">1 1 1</scale>
<instance_geometry url="#wheel_1-mesh">
Note- When importing, I have different nodes to choose. I have only 4 bones, but I get 12.
Bone_1-4 are the bones name (Group) (When I choose this one, animation doesn't work)
Bone is just the bone, no wheel mesh
Wheel_1-4 are the wheel mesh name (When choosing this one, the animation works, but their rotation is wrong, since the I can't get the wheels and the bones to be correctly placed)
This is the current group hierarchy
Intervehicle collision are working correctly (chassis)
Any help? Is the .dae file section correct or I have to fix it manually? Does somebody have a .dae file of some rigged vehicle I can take as example? Or tell me how the bones&Wheels origins are supposed to be.
The Collada exporter blender used is 1.4.1