开发者

Android Opengl boundries

开发者 https://www.devze.com 2023-02-18 04:03 出处:网络
I\'m developing a 3D game for android and I was wondering if it\'s possible to get a bounding bo开发者_开发知识库x in opengl. Basically, I\'m using the accelerometer to control an object and I don\'t

I'm developing a 3D game for android and I was wondering if it's possible to get a bounding bo开发者_开发知识库x in opengl. Basically, I'm using the accelerometer to control an object and I don't want the controlled object to exit the users filed of view (leave the screen). I could hard code some boundaries; however, that probably will not be compatibly with every android phone since screen sizes vary.


OpenGL has nothing to do with bounding boxes. It's a graphics API operating on a vertex/polygon level. The applications that are using bounding boxes for some logic take them from a scenegraph-based spatial node management logic that is a part of graphics engine.

0

精彩评论

暂无评论...
验证码 换一张
取 消