Previous Thread  Next Thread

chat icon BGE and object bounding box

erlebach

Posted: Thu Sep 15, 2011 10:13 pm
Joined: 23 Sep 2009
Posts: 5
I would like to access the bounding box of an object accessible from the game engine. Of course, I could calculate it by running through the list of vertices. However, this object obviously knows its dimensions, so there should be a way to access bpy information from within the game engine, while the game is running. Is this actually possible? There is very little discussion on this topic. If not possible, what is it that prevents this from being implemented? Thanks.

Gordon Erlebacher
Reply with quote


Karakasimov

Posted: Mon Sep 26, 2011 2:51 pm
Joined: 26 Sep 2011
Posts: 13
erlebach wrote:
I would like to access the bounding box of an object accessible from the game engine. Of course, I could calculate it by running through the list of vertices. However, this object obviously knows its dimensions, so there should be a way to access bpy information from within the game engine, while the game is running. Is this actually possible? There is very little discussion on this topic. If not possible, what is it that prevents this from being implemented? Thanks.

Gordon Erlebacher


the bpy module is available on the game engine when you run it from blender.
but it wont be available when made a runtime.
Reply with quote


 
Jump to:  
Powered by phpBB © 2001, 2005 phpBB Group