/**
  * Sets the X rotation (angle) of the node in degrees which performs a horizontal rotational skew.
  *
  * The difference between `setRotationalSkew()` and `setSkew()` is that the first one simulate Flash's skew functionality,
  * while the second one uses the real skew function.
  *
  * 0 is the default rotation angle.
  * Positive values rotate node clockwise, and negative values for anti-clockwise.
  *
  * @param rotationX The X rotation in degrees which performs a horizontal rotational skew.
  *
  * @warning The physics body doesn't support this.
  * @js setRotationX
  */
  float rotationX);
  setRotationSkewX(rotationX); }
 

注释没有看仔细,浪费几天的时间.... @js setRotationX----- 这句话的意思是  JS对应的版本是setRotationX,函数
说明: CC_DEPRECATED_ATTRIBUTE 表示 setRotationX 函数 在cocos2d-x 当前版本已经废弃了。  看文档要看仔细了.

 

相关文章:

  • 2022-01-03
  • 2022-12-23
  • 2022-01-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-04
  • 2021-09-18
猜你喜欢
  • 2021-07-03
  • 2021-09-19
  • 2022-12-23
  • 2022-12-23
  • 2022-01-05
  • 2022-12-23
相关资源
相似解决方案