We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Camera Collision via javascript

Home Forums Programming Camera Collision via javascript

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #70400
    ma77hew
    Participant

    Hi,

    I’ve had to implement some javascript via threejs to achieve the type of camera control I am looking for. So, I cannot use Verge3D to handle the camera controls.

    So now, I’d have to implement simple collision detection for my camera and the walls of my 3D space. I’ve looked at some examples in Soft8Soft and they’re great.
    In this example right here, would it be possible to highlight the areas of the source code which enable this behavior?
    Can someone point me in the right direction? Is there a code example of how Verge3D handles this?

    Threejs

    Instead, i want to copy the way Verge3D does it via Blender with only 1 single material.

    • This topic was modified 2 months, 2 weeks ago by ma77hew.
    #70407
    kdv
    Participant

    i want to copy the way Verge3D does it via Blender with only 1 single material.

    Check the puzzles for VR controls in the puzzles library. It will give the direction. Those puzzles are simplified variant of the First Person controls (for sticks).

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.