Friday, July 29, 2022
HomeGame DevelopmentdebugDraw alignment problem - Cocos Creator

debugDraw alignment problem – Cocos Creator


@pandamicro, @linrm

A observe as much as this matter Node connected with Inflexible Physique is displaced when the sport is resized

I adopted the recommendation and created an extra renderRoot2D and digital camera to carry all physics associated objects.

With this method the problem of gameObject being displaced on resize is fastened.
However the debugDraw will get fully offset when resized. I’ve connected screenshots for reference.
Screenshot 2022-07-28 at 7.15.53 PM

Moreover, I’ve connected a zipper file containing the venture.
physicsDebug.zip (1.9 MB)

I’ve a sense that this occurs as a result of debugDraw is connected to canvas digital camera as an alternative of root digital camera.

Please take a look and let me know what might be going improper.
Would actually respect the assistance.


why you utilize feeling? you possibly can debug it and discover what going improper by your self, really feel straightforward to debug it.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments