This fragments shows how to either perturb or set the orientation of a rigid body randomly.
15 IMP.algebra.get_unit_bounding_box_3d())
19 transformation = Transformation3D(rotation, translation)
24 rbd.set_reference_frame(ReferenceFrame3D(transformation))
27 composed_tr = IMP.algebra.compose \
28 (rbd.get_reference_frame().get_transformation_to(),
30 rbd.set_reference_frame(ReferenceFrame3D(composed_tr))