Skip to main content

All Questions

Tagged with
1 vote
1 answer
333 views

Scripting - Proportional edit mesh

I want to move a polygone using its 4 vertices. I get the MeshProxy of that vertex then I change its XYZ positions. The problem is that it separates the whole polygone from the object. I want to ...
yanisk's user avatar
  • 13
1 vote
1 answer
273 views

BGE python: accessing Edge information in a mesh made of polylines (not polygons)

In the Blender Game Engine I need to know if two vertexes are connected by and edge. However, the mesh is made of polylines (segments), not polygons, thus I can not use KX_MeshProxy.getPolygon(index). ...
Nicola Masotti's user avatar
0 votes
2 answers
2k views

Finding closest distance from point to mesh in BGE

In BGE, I have a simple mesh, say, a cube that has been subdivided a few times to give it more than 8 vertices, like so: What I'd like to do, generically speaking, is find the shortest distance from ...
DrSandwich's user avatar
0 votes
0 answers
818 views

Creation of Navigation mesh object dynamically

I have a grid and at run time my application determines certain path on the grid. As shown in the image. When the path is calculated, I have list of center of all the cells, for example starting from '...
sosoup's user avatar
  • 67
1 vote
0 answers
80 views

Mesh generation in BGE [duplicate]

Does BGE allow a mesh loader python script which could generate all meshes before a game level begins rather than just use pre-rendered model directly? And to be more clear, I'm speaking about ...
Gabriel's user avatar
  • 621
4 votes
1 answer
1k views

Generate mesh at run time

Is it possible to generate mesh at runtime in blender game engine? That is, is it possible for blender to generate meshes using python code when the game runs? I really would like to know if this is ...
Gabriel's user avatar
  • 621
0 votes
1 answer
158 views

How get length of Navigation Mesh?

I have a navigation mesh (as shown in the attached picture). The navigation mesh consists of curve and array modifiers. As it is has an array modifier, it consists of strings of planes (I see it when ...
sosoup's user avatar
  • 67
2 votes
0 answers
95 views

Materials and properties, color changes react differently

in my game I have a ray sensor in my player-object searching for the property "block". If the "block" property is found in a target-object, it changes the color of the target-object from [ 0.0, 1.0, ...
Lev's user avatar
  • 947
0 votes
0 answers
252 views

Blender game: get face orientation (stacking blocks)

I have a cube and I want to spawn another cube right on top of it. (it should work for other shapes like a pyramid, too). The tricky part is, that the first cube (or pyramid) moves randomly around. ...
Sputi's user avatar
  • 451
4 votes
1 answer
428 views

Help with Level of Detail coding

I am creating this fps game in the bge and since I was planning on having incredibly large terrain, I was planning on implementing some code for adding level of detail to the terrain mesh. I know ...
ZachariahRS's user avatar
2 votes
1 answer
291 views

Change the position of a face in real time

I'm using BGE and I want to change the position of a face of a rigid body while the game is running. I don't know how to do it in Python. Thanks for your help!
Andrea's user avatar
  • 751
1 vote
1 answer
403 views

Selection Problems with Converting Quads to Tris in Game Engine?

I'm trying to make it so that when the user clicks while the game is playing, it converts the quads of the "Gem" object into tris. I have the camera with a sensor for the Left Mouse Button connected ...
Andrew Tapia's user avatar