rotation and positioning problem
Opened this issue · 1 comments
how to position the block to base, I have tried to rotate it with the following lines of code (the code is attached as a file):
// Set the initial position of the decoration
decoration->SetPosition({-30.0, -20.0, -20.0});
// Set the rotation (orientation) of the decoration in degrees for each axis (X, Y, Z)
decoration->SetOrientation({45.0, 0.0, 0.0});
code.cc.txt
Hey, I'm not totally sure what you're asking here. Are you trying to rotate that large plane to be aligned with the ground?
The Orientation of a Decoration
is the way that it is rotated about each axis. See the GIFs below for reference.
It may just be easier to open your model in Blender, or some other 3D modeling software and rotate it to the desired orientation, if you don't need to change it during the simulation.
Rotation Axis References
X
decoration->SetOrientation({Changing, 0.0, 0.0});
Y
decoration->SetOrientation({0.0, Changing, 0.0});
Z
decoration->SetOrientation({0.0, 0.0, Changing});