Mouse click on object -> load url

Hi

When you press mouse left on an object it loads a url

in Logic nodes or in script.

Use this build: ArmorySDK-2020-10

Hi

There are all logical nodes for this: Mouse, Pick RB, Load Url.
Can be made by scripts, can be mixed…

i’ve tried this but can’t get it to work.

The problem with your node setup is that you compare a mesh (which is the geometry data of the object) with a location (the hit point where the mouse hit the object). The Pick Rigid Body probably needs some better output names and a better documentation, sorry about that.

Instead you must use the Rigid Body output which returns an actual object. Also, change the Get Object Mesh node into an Object node and it should work.

1 Like

Still not working … I’m a complete beginner - A image is much better… :slight_smile:

Hi @WeezY,

Try this setup

1 Like

nope… the Cube do I have to do something about it . but thx.

I am sorry, I should have been more specific. Yes, for the cube you have to apply RigidBody. Like this:

Hi
When I Rigid Body(Passive) the Cube the camera freezes(can not control it) and I can not click on the cube.
:frowning:

The rigid body need not be passive. It can be any type: Passive or Active or Animated. Also, It can be of any available shape Box, Sphere, etc…It does not matter.

I am not sure why the camera freezes though. Could you provide me the output of the Blender system console when the game freezes. You can open it by Blender > Window > Toggle System Console.

Okay
I do not think it freezes, but i can not use my mouse or keyboard. Chrome is running normal.

__ [Armory] Compiling __________
Exporting Scene
Scene exported in 0.03652524948120117
Finished in 3.4334988594055176
Server already running
127.0.0.1 - - [14/Oct/2020 00:10:27] “GET /build_volumetric%20virker%20—/debug/html5/ HTTP/1.1” 200 -
127.0.0.1 - - [14/Oct/2020 00:10:27] “GET /build_volumetric%20virker%20—/debug/html5/kha.js HTTP/1.1” 200 -
127.0.0.1 - - [14/Oct/2020 00:10:28] “GET /build_volumetric%20virker%20—/debug/html5/Scene.arm HTTP/1.1” 200 -
127.0.0.1 - - [14/Oct/2020 00:10:28] “GET /build_volumetric%20virker%20—/debug/html5/World_irradiance.arm HTTP/1.1” 200 -
127.0.0.1 - - [14/Oct/2020 00:10:28] “GET /build_volumetric%20virker%20—/debug/html5/_Translucent_Glass_Gray_1_001_data.arm HTTP/1.1” 200 -
127.0.0.1 - - [14/Oct/2020 00:10:28] “GET /build_volumetric%20virker%20—/debug/html5/Gypsum_Bump_001_data.arm HTTP/1.1” 200 -
127.0.0.1 - - [14/Oct/2020 00:10:28] “GET /build_volumetric%20virker%20—/debug/html5/_1_001_data.arm HTTP/1.1” 200 -
127.0.0.1 - - [14/Oct/2020 00:10:28] “GET /build_volumetric%20virker%20—/debug/html5/_Color_000_1_001_data.arm HTTP/1.1” 200 -
127.0.0.1 - - [14/Oct/2020 00:10:28] “GET /build_volumetric%20virker%20—/debug/html5/_3_001_data.arm HTTP/1.1” 200 -
127.0.0.1 - - [14/Oct/2020 00:10:28] “GET /build_volumetric%20virker%20—/debug/html5/Taget_001_data.arm HTTP/1.1” 200 -
127.0.0.1 - - [14/Oct/2020 00:10:28] “GET /build_volumetric%20virker%20—/debug/html5/M_0136_Charcoal_001_data.arm HTTP/1.1” 200 -
127.0.0.1 - - [14/Oct/2020 00:10:29] “GET /build_volumetric%20virker%20—/debug/html5/Color_004_001_data.arm HTTP/1.1” 200 -
127.0.0.1 - - [14/Oct/2020 00:10:29] “GET /build_volumetric%20virker%20—/debug/html5/M_0134_DimGray_001_data.arm HTTP/1.1” 200 -
127.0.0.1 - - [14/Oct/2020 00:10:29] “GET /build_volumetric%20virker%20—/debug/html5/v_g_001_data.arm HTTP/1.1” 200 -
127.0.0.1 - - [14/Oct/2020 00:10:29] “GET /build_volumetric%20virker%20—/debug/html5/Color_003_001_data.arm HTTP/1.1” 200 -
127.0.0.1 - - [14/Oct/2020 00:10:29] “GET /build_volumetric%20virker%20—/debug/html5/FrontColor_001_data.arm HTTP/1.1” 200 -
127.0.0.1 - - [14/Oct/2020 00:10:29] “GET /build_volumetric%20virker%20—/debug/html5/armdefault_data.arm HTTP/1.1” 200 -
127.0.0.1 - - [14/Oct/2020 00:10:29] “GET /build_volumetric%20virker%20—/debug/html5/Linkbutton_data.arm HTTP/1.1” 200 -
127.0.0.1 - - [14/Oct/2020 00:10:29] “GET /build_volumetric%20virker%20—/debug/html5/LinkClick_data.arm HTTP/1.1” 200 -
127.0.0.1 - - [14/Oct/2020 00:10:29] “GET /build_volumetric%20virker%20—/debug/html5/Material_001_data.arm HTTP/1.1” 200 -
127.0.0.1 - - [14/Oct/2020 00:10:29] “GET /build_volumetric%20virker%20—/debug/html5/Material_data.arm HTTP/1.1” 200 -
127.0.0.1 - - [14/Oct/2020 00:10:29] “GET /build_volumetric%20virker%20—/debug/html5/shader_datas.arm HTTP/1.1” 304 -
127.0.0.1 - - [14/Oct/2020 00:10:29] “GET /build_volumetric%20virker%20—/debug/html5/mesh_Cube.004.arm HTTP/1.1” 304 -

I believe your mouse is “locked”, so you cannot move it. I am not sure what the underlying problem is here. Can you share your project folder as a .zip file here, if it’s alright?

Work sample for camera set “Viewport” (free move)
File: load_url.blend
Demo: web

I think I did the same as
QuantumCoderQC wrote but E1e5en works, even though it looks like
QuantumCoderQC. thanks to everyone … :slight_smile: