[SOLVED] Best way for a physics SciFi style door (4 posts)

  • Profile picture of nibbler nibbler3p said 3 months, 3 weeks ago:

    Hi monkeys,
    I’m trying to implement a door that opens in a scifi way. Something similar to this http://www.youtube.com/watch?v=C4V4uWsd-1c

    But even with just the door disappearing on the floor is ok. In the beginning I thought to simply resolve with a MotionTrack and MotionPath. But then I realized that it works only with spatial and my door needs to be physical in order to avoid CharacterControl to pass through it. So I tried with HingeJoint and enableMotor but it seems a little bit too complicated to use for the effect I would like to obtain. So before spending to much time trying to implement a solution I prefer to ask your wise opinion :-) .
    So what is in your opinion the best approach to solve this problem? Any suggestion is greatly appreciated :-) Thanks!

  • Profile picture of wezrule wezrule201p said 3 months, 3 weeks ago:

    Not sure exactly what you want to do with it but a simple solution would be to have that as an animation, and have 2 collisionshapes. Which change depending on the state of the door. When door is closed/opening/closing have a box collisionshape covering it all.

  • Profile picture of normen normen1290p said 3 months, 3 weeks ago:

    Just moving a spatial with a kinematic rigid body up/down will also give you this result in a simple way.

  • Profile picture of nibbler nibbler3p said 3 months, 3 weeks ago:

    Thanks guys for the prompt reply.
    @normen: my god the solution was really so simple I feel ashamed of having ask in the firs place. I simply put:

    myControl.setKinematic(true);

    And that’s it. Everything works perfectly. :-D
    Thanks again guys, really appreciated.