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.
!> Attention 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.
Members
- get_force
- get_id
- get_moment
- get_name
- get_orientation_euler_angles
- get_orientation_quaternion
- get_position
- get_rotational_velocity
- get_translational_velocity
- has_linked_motion_frame
- set_orientation
- set_orientation_angles
- set_position
- set_rotational_velocity
- set_translational_velocity
Public functions
Function get_id
Function get_name
Function get_force
Function get_moment
Function get_position
Function get_translational_velocity
Function get_orientation_quaternion
Function get_orientation_euler_angles
Function get_rotational_velocity
Function set_position
- 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. Parameters:
- double3 position
Function set_translational_velocity
- v: The Cartesian components of the geometry’s new translational velocity.
Calling set_translational_velocity in a geometry that is already linked to a motion frame is not allowed. Parameters:
- double3 v
Function set_orientation
- quat: The geometry’s new orientation expressed as a quaternion (w, x, y and z).
Calling set_orientation in a geometry that is already linked to a motion frame is not allowed. Parameters:
- double4 quat
Function set_orientation_angles
- 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. Parameters:
- double3 angles
Function set_rotational_velocity
- w: The Cartesian components of the geometry’s new rotational velocity.
Calling set_rotational_velocity in a geometry that is already linked to a motion frame is not allowed. Parameters:
- double3 w