Skip to main content

All Questions

0 votes
1 answer
83 views

Is it possible to use local and nonlocal forces simultaneously using bge?

I'm working on a space simulator and I am currently using the .applyForce() method to move objects. Is it possible to set both a local force (thust) and a global force (3d gravity) to act on an object ...
Omni's user avatar
  • 7
0 votes
1 answer
220 views

Is it possible to have multiple physics simulations in blender game engine?

Ok, I need to preface this with the fact that what I'm intending to do may not be possible in blender. I was needing to know if it is possible to create multiple rigid body systems within the blender ...
Omni's user avatar
  • 7
0 votes
1 answer
889 views

How do set an angular velocity to zero with python bge?

I'm new to blender scripting, but not to blender or python. I am trying to set up a rotary inverted pendulum. The initial state of the pendulum is upright with an angular velocity of 0. I would like ...
user1107703's user avatar
3 votes
1 answer
486 views

Car Suspension - Getting Contact Depth and Speed From rayCast()

So I am making a vehicle physics wrapper for my game(aswell as one other game). I am doing kinda well with it, now I've gotten to suspension. And here I use simple method: I apply impulse downwards ...
Adrians Netlis's user avatar
3 votes
2 answers
2k views

Make a rotations-only parent BGE

There is a way to make an object parented to another object, but only for the rotations, not for the location. If i move the parent, the child may dont move. If i rotate the parent, the child must ...
Hack0re's user avatar
  • 298
3 votes
0 answers
681 views

Super Monkey Ball / Neverball level rotation system

Im making a sort of remake of Super Monkey Ball 2 (Gamecube) / Neverball (PC) is simillar too, but i have already encountred problems: In SMB (Super Monkey Ball 2) or Neverball, you dont move the ...
Hack0re's user avatar
  • 298
1 vote
1 answer
84 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!
29374819's user avatar
  • 331
1 vote
0 answers
316 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 ...
29374819's user avatar
  • 331
0 votes
1 answer
853 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 ...
29374819's user avatar
  • 331
1 vote
1 answer
189 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 ...
29374819's user avatar
  • 331
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 ...
29374819's user avatar
  • 331
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: ...
29374819's user avatar
  • 331
0 votes
1 answer
702 views

Setup an inverted pendulum simulation with BGE

I'm very new to Blender. I'd like to setup a very simple rigid body physics system using the game engine. The system is simply a pole hinged in the middle of a block, which can move horizontally on a ...
Ajay T's user avatar
  • 115
1 vote
1 answer
56 views

How to reduce graviation on single object?

I want to know how to make object's gravitation low(something like 1.0) or turn it off at all when actuator gives positive pulse. It should keep dynamics, evrything should stay as it is except it ...
Adrians Netlis's user avatar
8 votes
1 answer
3k views

Create custom physics for an object with python

Blender has physics options which we can enable for our objects - cloth , fluid etc. Is there a way I can add a custom physical behavior to my objects, where this behavior is modeled as a python ...
sanjeev mk's user avatar

15 30 50 per page