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.

Dragged over toggle option

Home Forums Puzzles Dragged over toggle option

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #29638
    core3d
    Customer

    Hello,
    I’m trying to attach an omni light to mouse-cursor position with surface intersection so when cursor move on scene, light will follow cursor and move on surface. With dragged over puzzle i have to click an object and move but i wanted to move object without click.

    So i tried to use detect horizontal surface puzzle for raycast intesect coords, but i assume i need to enable ar/vr mode for this to work. If i can get ar hit point x,y,z then i can apply those coords to my light object. I can’t get it work either.

    Is there an option like, this assigned object on puzzle always drag or any workaround in that matter?
    Thanks.

    #29658
    core3d
    Customer

    i’m actually trying to achieve this example with puzzles:
    https://threejs.org/examples/?q=terra#webgl_geometry_terrain_raycast

    #29661
    GLiFTeK
    Customer

    i’m actually trying to achieve this example with puzzles: https://threejs.org/examples/?q=terra#webgl_geometry_terrain_raycast

    Hi,
    In the three.js link example, are you referring to the behavior of the “normal direction” custom cursor?

    is your own project’s geometry that complex?

    you could use the “when hovered over” event puzzle and have an Empty/Null be bound with HTML “bind element” to your cursor but ALSO have the Empty be constrained to the geometry using physic’s constraints or 3d package constraints?

    #29662
    core3d
    Customer

    Hi,
    My geometry not so complex, i don’t need normal direction what i need is raycasting intersection coordinates, where mouse cursor touch any surface in scene i need that point x,y,z return data and apply those values to another object position.

    That three.js example doing this very well, i just can’t figure it out with puzzles.
    Also in three.js example it’s not custom cursor, it’s an object moving on terrain surface driven by mouse cursor.

    i tried get camera direction from mouse/touch option enabled, it kinda works but the problem is attached object not follow surface coordinates, when you move your mouse up or outside of terrain your object just following mouse cursor and not stick on my surface.

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