例子,默认朝向:

看一看SetOrientation的定义:

  /**
   * Sets the orientation of the Prop3D.  Orientation is specified as
   * X,Y and Z rotations in that order, but they are performed as
   * RotateZ, RotateX, and finally RotateY.
   */
  void SetOrientation(double x, double y, double z);

试试效果:

    actor->SetOrientation( 0, 0, 90 );

    actor->SetOrientation( 0, 90, 0 );

    actor->SetOrientation( 0, 90, 0 );


由此可知,世界坐标系的3轴朝向应该是:

(Z轴朝外)

分类: C plus plus

发表评论

电子邮件地址不会被公开。 必填项已用*标注