Look at the document to see carefully, English to strengthen AH ... cocos2d-x API and corresponding version of Cocos2d-js API does not correspond exactly

Source: Internet
Author: User
Tags in degrees

/**

* Sets the X rotation (angle) of the node in degrees which performs a horizontal rotational skew.

*

* The difference between ' Setrotationalskew () ' and ' Setskew () ' is 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

*/

virtual void setrotationskewx (float rotationX);

Cc_deprecated_attribute virtual void Setrotationx (float RotationX) {return setrotationskewx (RotationX);}

Note not looking carefully, wasting a few days of time .... @js Setrotationx-----This sentence means that the corresponding version of JS is Setrotationx, function? Description: Cc_deprecated_attribute represents Setrotationx  The function is deprecated in the current version of Cocos2d-x. Look at the document carefully.

Look at the document to see carefully, English to strengthen AH ... cocos2d-x API and corresponding version of Cocos2d-js API does not correspond exactly

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.