I use them as described in the manual. But when I try to read the position from the body, all it returns is a vector with the values {NaN,NaN,Nan} If someone has a working example
with geomtranforms I’d really appreciate to see them…
Heres my code, what do I do wrong ?
//create geom box
box = new GeomBox("geombox:"+getName(),bxs,bys,bzs);
//create geomtransform
geomTransform = new GeomTransform("geomtransform:"+getName());
//set geom for geomtransfrom
geomTransform.setEncapsulatedGeom(box);
//Create body
body = new Body(name,world);
//get position and rotation to be used for this body, as stated in the Transform3d object (tr)
Vector3f pos = new Vector3f();
tr.get(pos);
Matrix3f m = new Matrix3f();
tr.get(m);
//set position and rotation of body
body.setPosition(pos);
body.setRotation(m);
//set geom
body.setGeom(geomTransform);
//set mass parameters
body.adjustMass(mass);