Rakan Posted September 15, 2017 Share Posted September 15, 2017 I had the idea to create a 3D menu screen for my webpage and was wondering if it was possible to load a different webpage when a collision between the camera and lets say a box occurs in Babylon.js. I've searched the forums and stack overflow but can't anything that even suggests if this is even possible. Thank you for any responses. Quote Link to comment Share on other sites More sharing options...
RaananW Posted September 15, 2017 Share Posted September 15, 2017 A collision is an event just like any other event. You can use the onCollide event to change window.location.href : https://playground.babylonjs.com/#NPWZAW Edit - short instructions - collide against the box and wait for the page to load Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.