Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
The (BGE) Blender Game Engine (discontinued, blender 2.41 - 2.79) allows you to create interactive 3D applications, game prototypes and simulations.
1
vote
1
answer
190
views
Control logic editor using scripts?
I'm trying to bypass the GUI and just use the logic editor via scripts, e.g. I want an object to move +1 blender unit in the x direction each frame for a physics simulation but don't want to have to u …
2
votes
2
answers
2k
views
Help with moving an object in bge randomly via script?
I'm pretty new to blender and I'm trying to move an agent (in this case, a cube) randomly in bge. This is what my code looks like at this point:
import bge
import random
from mathutils import Vector …
1
vote
2
answers
2k
views
Set physics type in bge using python?
I'm trying to set up a scene using a script that places a bunch of cubes in random locations throughout the screen and sets their physics type to rigid body. Ideally, I'd like to have one cube be an a …
1
vote
2
answers
449
views
Write out animations to separate files?
Is there any way I can, after rendering an animation/physics simulation, write out said animation to an external file? Needs to be a file format compatible with Linux (I'm new to Linux so unfortunatel …
2
votes
1
answer
5k
views
Program keyboard input?
I need to run some basic physics simulations on a headless machine and I'd like to program agent movements based on function outputs (e.g. "move left")-I have some code that programs WASD to move a cu …
0
votes
0
answers
27
views
Get agent to move using commands stored in separate file? [duplicate]
I have a script that allows a cube to be moved using WASD. I'd like to avoid having to use actual keyboard input for that and thought about creating a separate file with commands like "Wkey" and such. …
0
votes
1
answer
858
views
Move object closer to another object using python?
I'm setting up a simple game loop in which the agent tries to collide with "enemies" (so they'll have the game property "enemy") and tries to steer clear of other objects (let's call them friends). I …
4
votes
1
answer
1k
views
take screenshots programmatically in bge?
import bge
from bge import render, logic
def makescreenshot():
path = logic.expandPath("//")
def main():
cont = bge.logic.getCurrentController()
own = cont.owner
…
1
vote
1
answer
134
views
Run bge for a certain number of frames?
Is there any way to programmatically specify the number of frames for which you want bge to run? Let's say I want bge to run for 5 frames after which I want to modify some game parameters via some scr …
1
vote
1
answer
395
views
programmatically start the game engine?
I have this piece of code that's meant to start the game engine (and it does so if I just run this on the default screen)...I have a script that generates an environment with planes, spheres, etc. and …
4
votes
1
answer
4k
views
Run blender without GUI?
I'd like to use Blender's physics engine/rendering capabilities headlessly (so it would have to be via command line). I'd like to run a lot of little physics experiments (thousands) on a server. Pytho …
1
vote
0
answers
320
views
bge keeps on crashing when I try to do soft-body simulations? [closed]
I've written a script that creates an environment with various physics types-it generates a fair number of soft body objects (>100) and, unfortunately, when I try to run the sim, blender crashes. Any …
1
vote
1
answer
85
views
How do I change the linear stiffness of an object programmatically?
I want to programmatically change the linear stiffness of some soft body objects I'm working with. How do I do this?
Thanks!