Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
ad2003's avatar
ad2003
Honored Guest
12 years ago

How could I implement a crouch function into sdk 0.4.0 ovr

Hi! Sorry for double posting this, but in Unity integreation forum I didn't get any feedback. I am wondering if it wasn't a good standard feature to have crouching implemented, as the dk2 gives a very nice new exploration option by moving your body around. Would be great if somebody could tell how to make this work. Thanks!

AD

2 Replies

  • stolk's avatar
    stolk
    Honored Guest
    "ad2003" wrote:
    Hi! Sorry for double posting this, but in Unity integreation forum I didn't get any feedback. I am wondering if it wasn't a good standard feature to have crouching implemented, as the dk2 gives a very nice new exploration option by moving your body around. Would be great if somebody could tell how to make this work. Thanks!
    AD


    Crouching on DK2 is done by the user, with a physical body movement.
    No need to map it to a gamepad button.

    If you want to detect crouch for collision detection: just query the SDK for the head position, or eye position.
  • mystify's avatar
    mystify
    Honored Guest
    "stolk" wrote:
    "ad2003" wrote:
    Hi! Sorry for double posting this, but in Unity integreation forum I didn't get any feedback. I am wondering if it wasn't a good standard feature to have crouching implemented, as the dk2 gives a very nice new exploration option by moving your body around. Would be great if somebody could tell how to make this work. Thanks!
    AD


    Crouching on DK2 is done by the user, with a physical body movement.
    No need to map it to a gamepad button.

    If you want to detect crouch for collision detection: just query the SDK for the head position, or eye position.

    This isn't always practical. Its hard to crouch while seated like this, and if I do I will probably just fall out of the camera view.