Sunday, May 29, 2022
HomeGame DevelopmentDrawing bounding field of sprite with out physicsWorld - cocos2d-x

Drawing bounding field of sprite with out physicsWorld – cocos2d-x


Hiya,
I search within the discussion board this subject and acquired this
https://focus on.cocos2d-x.org/t/box2d-debug-draw-with-coco2d/38254/2

Within the physics engine it is extremely straightforward. You simply do one thing like:

    PhysicsWorld* physicsWorld = scene->getPhysicsWorld();
    physicsWorld->setDebugDrawMask(PhysicsWorld::DEBUGDRAW_ALL);

Isn’t that attainable in a Non bodily world with out going right into a “convoluted” answer as within the above?
I’m positive it should be fairly straightforward, however I don’t see any data about it. Older posts mentioned to make use of this

	#outline CC_SPRITE_DEBUG_DRAW 1

However it’s not working for me. Any options?

thanks


RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments