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

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

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

[ad_1]

Hi guys we’re making a block breaking cell recreation proper now. It’s an Arkanoid Style recreation 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 present 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 during which course it is going to flip.

In 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 operate in cocos creator? Is there any technique to predict physics upfront step-by-step?

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here