BBDECL void BBCALL xEntityCompoundChildSetRotation ( Entity * entity,
int index,
float pitch,
float yaw,
float roll
)
Sets a new rotation of the compound's subshape.
Parameters:
entity Entity handle
index Index of the subshape
pitch New pitch angle
yaw New yaw angle
roll New roll angle
|
В чем pitch yaw & roll в этой шайтан-функции измеряются. Потому что ни на градусы ни на радианы это не похоже.
xEntityCompoundAddBox(body,2.0,0.25,1.25);
xEntityCompoundChildSetRotation(body,2,0,
0.015,0);
xEntityCompoundChildSetPosition(body,2,0,0.9,-1.5);
результат: