pokepetter / ursina

A game engine powered by python and panda3d.
https://pokepetter.github.io/ursina/
MIT License
2.12k stars 321 forks source link

Getting the collision box vertex in 2D #462

Open lchunleo opened 1 year ago

lchunleo commented 1 year ago

Sorry am still a learner , but i will like to get the collision box vertexes (bounding box)in the 2d projection display. Can share how to do so?

fader111 commented 1 year ago

Didn't find it yes also, but have an idea, not such elegant, though. In \ursina\ursina\prefabs\video_recorder.py png files are saving and then converting to the items of massive to make a gif. The same variant for you with opening saved pics and finding bboxes with, let say opencv -> cv2.boundingRect() or cv2.minAreaRect could be a way out