- This topic has 3 replies, 2 voices, and was last updated 5 years, 5 months ago by
core3d.
-
AuthorPosts
-
2020-07-04 at 12:56 pm #29638
core3dCustomerHello,
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.2020-07-04 at 10:10 pm #29658
core3dCustomeri’m actually trying to achieve this example with puzzles:
https://threejs.org/examples/?q=terra#webgl_geometry_terrain_raycast2020-07-04 at 11:28 pm #29661
GLiFTeKCustomeri’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?
Visit the GLIFTEK Verge3D Plugins Store!
GLIFTEK.com for Plugin Documentation & LIVE DEMOS!
LIKE The GLIFTEK Facebook Page for updates!
Join the Verge 3D Discord Server!
plz share Discord link & on your signature!2020-07-05 at 12:56 am #29662
core3dCustomerHi,
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.
-
AuthorPosts
- You must be logged in to reply to this topic.
