Skip to main content
Up and Coming
November 28, 2013

Hydra-held object freak out on collisions?

Looking for some help with the hydra.

Setup: Hydra controls a cube "H", which is connected to another cube "T" via a fixed joint. T is my IK Mecanim target.

I'd like to be able to draw with my avatar sitting at a desk.
What I want to be able to do is have an object like a marker in the hand of the avatar. If I move the Hydra it moves H and T together. If the hydra goes through the desk the hand/marker should stop at the desk.

Currently I have managed to make this work... sort of. If you keep moving H down through the desk via the hydra it pulls T with it and stops at the desk for a moment, then snaps to the other side of the desk collider like it broke through.

The marker will also do the same thing, however my issues comes up when I want to drag the marker along to make a line, it starts freaking out and rotates around like crazy and just generally freaks out.

I wonder if there's a better collider than a cube to use for the marker to avoid it flipping out?

Thoughts on how to fix this?


Thanks in advance!
    This topic has been closed for replies.

    3 replies

    Inspiring
    November 29, 2013
    "DarkJames" wrote:
    I wonder if there's a better collider than a cube to use for the marker to avoid it flipping out?


    Have you tried a sphere collider? Seems like that would have smooth contact from all sides, and drag along a surface more easily. If that's not an option or it doesn't work well enough, you might also look into setting up a Physic Material for your marker / draw surface that has less friction or something. More gliding, less skipping.

    By the way, this sounds like a really cool project, and can't wait to hear more about it at some point!
    Titans of Space PLUS for Quest is now available on DrashVR.com
    DarkJamesAuthor
    Up and Coming
    November 29, 2013
    The sphere collider seems to be breaking through my box collider... should I make them both bigger?

    The physics material seemed to help, still need to get it working better as it jerks around sometimes still :T

    And unfortunately I can't really talk about much, as I'm under an NDA :(

    Thanks for the help thus far!
    Seeing is believing
    Inspiring
    November 29, 2013
    Not sure what else to suggest. You could try asking /r/unity3d, seems like quite a few knowledgable people there!
    Titans of Space PLUS for Quest is now available on DrashVR.com