BGE and object bounding box

Game Engine, Players & Web Plug-in, Virtual Reality, support for other engines

Moderators: jesterKing, stiv

erlebach
Posts: 5
Joined: Wed Sep 23, 2009 7:15 pm

BGE and object bounding box

Postby erlebach » Thu Sep 15, 2011 11:13 pm

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

Karakasimov
Posts: 13
Joined: Mon Sep 26, 2011 3:42 pm
Location: India

Re: BGE and object bounding box

Postby Karakasimov » Mon Sep 26, 2011 3:51 pm

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.


Return to “Interactive 3d”

Who is online

Users browsing this forum: No registered users and 0 guests