IRockyGeometryMotionData is an interface for a geometry motion in Rocky. A geometry motion represents the information from the motion applied to the geometry in Rocky’s last simulation timestep. This information includes for Rocky’s current simulation timestep, the forces and moments from the particles that are being applied to the geometry, and also the position, translational velocity, rotational velocity and orientation of the geometry from the previous timestep’s motion. The information represented in a geometry motion are the forces and moments from the particles simulation, the position, translational velocity, rotational velocity and orientation of the geometry from the previous motion. To move the geometry within Rocky’s current simulation timestep, the same motion information, i.e. (the new position, translational velocity, rotational velocity and orientation of the geometry) must be defined as within the previous timestep. If no motion is applied to the geometry, nothing is required to be set. If the geometry has no motion applied to it, the geometry’s translational and rotational velocities are zero and its position and orientation are equal to the ones set at the end of the previous timestep. All property and variable values made available through IRockyGeometryMotionData are dimensionless.
The geometry’s gravity center is the reference position Rocky uses for the geometry’s motions. Thus, the geometry’s gravity center will have a new position after each motion applied.
ReturnsA vector whose components are the Euler angles that define the orientation of the geometry. In this vector, the x-component is the roll angle, the y-component is the pitch angle and the z-component is the yaw angle.
Sets the geometry’s new orientation in Euler angles according to the motion that was applied.Parameters
Name
Description
angles
A vector whose components are the Euler angles that define the new orientation of the geometry. In this vector, the x-component is the roll angle, the y-component is the pitch angle and the z-component is the yaw angle.
Calling set_orientation_angles in a geometry that is already linked to a motion frame is not allowed.
Sets the new position for the geometry according to the motion that was applied.Rocky uses the geometry’s gravity center as the reference position for the geometry’s motions. Thus, the geometry’s gravity center will have a new position after each motion applied.Parameters
Name
Description
position
The Cartesian components of the geometry’s new position, which is equal to the new location of its gravity center.
Calling set_position in a geometry that is already linked to a motion frame is not allowed.