Jump to content

[NOTABUG] Possible Bug in BoneTranslation


photo

Recommended Posts

Posted (edited)

I am trying to apply a translation of 1 meter in the Y direction of one bone (it is a sliding door within a vehicle) it seems that translation is scaled by 100 (node is not scaled),

 

			vec3 deltaVector = vec3(0f,1f,0f) ;
			MathLib.Mul(out boneTransform, boneTransform, MathLib.Translate(deltaVector)); // translates 100 meters
			MathLib.Mul(out boneTransform, boneTransform, MathLib.Translate(deltaVector*0.01f)); // translates 1 meter
			mesh.SetBoneChildrenTransform(BoneNumber, boneTransform);

Also I think the x and z axes are inversed... please check also this (maybe due to my bone rotation ?).

thanks

Fred

Edited by fred.naar
Posted

Took me a while to diagnose...

Not a bug on your side... but on Unreal FBX export ...

all bones are scaled 100% so this is what caused the issue

it works perfectly once bones are correctly scaled...

 

thanks

Fred

 

  • silent changed the title to [NOTABUG] Possible Bug in BoneTranslation
×
×
  • Create New...