Thursday, October 20, 2022
HomeGame DevelopmentHow can I predict a trajectory with cocos creator? - Cocos Creator

How can I predict a trajectory with cocos creator? – Cocos Creator


Hello guys we’re making a block breaking cellular sport proper now. It’s an Arkanoid Type sport the place you break blocks by firing spherical balls.

We’re making a dotted line that provides us a information to the place we’re going to fireplace earlier than firing. We offer a information to the half the place we hit twice, however essentially the most ambiguous half is that the ball being fired is spherical, so it’s troublesome to calculate precisely through which course it’s going to flip.

Within the case of RayCast within the present Cocos tutorial, there’s an error within the reflection angle, so it can’t be used.

How can I implement this perform in cocos creator? Is there any option to predict physics prematurely step-by-step?


RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments