The problem of the rotation of the 3d sphere

Hi all, I’m using Cocos Creator 2.4.3
I am developing a game of billiards
I’m having trouble with the rotation motion of the ball.

I hope everyone will help.
I want to roll the ball on the table in a certain direction, what should the values rotationX, rotationY, rotationZ be like (only mention rotation the ball, not having to move yet)?
Thank you very much!

Screenshot 2021-02-26 103647

2 Likes

I thought what you need is Quat.rotateAround.

image

Yeah ! this is what I am looking for
thanks for your support ! :smiling_face_with_three_hearts:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.