Model.rotatedummyrootbodytoeulerangles#
- Model.rotatedummyrootbodytoeulerangles(name, ax, ay, az, cx, cy, cz)#
Rotates a dummy about a given point. The mechanism must have the enabled flag set to true for this to be possible.
- Parameters:
name (hwString) – The name of the root body of the dummy.
ax (double) – The desired x Euler angle of the dummy with respect to the global axes.
ay (double) – The desired y Euler angle of the dummy with respect to the global axes.
az (double) – The desired z Euler angle of the dummy with respect to the global axes.
cx (double) – The x-coordinate of the center point.
cy (double) – The y-coordinate of the center point.
cz (double) – The z-coordinate of the center point.
Example#
Move a dummy with root body named “ Pelvis Angle Gauge “ to Euler angles 10.0 , 50.0 and 20.0 about the point ( 0,0,0 )#import hm import hm.entities as ent model = hm.Model() model.rotatedummyrootbodytoeulerangles( name="Pelvis Angle Gauge", ax=10.0, ay=50.0, az=20.0, cx=0.0, cy=0.0, cz=0.0 )