0
$\begingroup$

I've created an automated garage door that opens when a Near sensor is triggered by a vehicle that comes close to it. The door is composed of panels (meshes) parented to a chain of bones that slide them up and down. All of this works fine, but when I drive the vehicle up to the door and it opens, the vehicle can't pass through the opening.

Here's my blend file. You'll have to drive the vehicle to the garage door on the building to see what I'm talking about. If you can tell me what the problem is and how I might fix it, I would really appreciate it!

http://www.pasteall.org/blend/42002

$\endgroup$
1
$\begingroup$

The physics mesh for an object is created at game start, and is not updated based on animations. For some reason armatures, even if they move the whole object, don't seem to update the physics mesh

In this case, it would be easiest to make the elements of the door non-collision, and animate a separate object (eg a cube) that slides up and down to let the player in - without an armature.

$\endgroup$
  • $\begingroup$ Another thing that the BGE can't do. Great. $\endgroup$ – Anthony Forwood May 23 '16 at 9:20
  • $\begingroup$ It is a question of efficiency. The BGE can refresh the physics shape (you do that with a Python calls). But this will eat a lot of processing time. $\endgroup$ – Monster May 24 '16 at 5:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.