- This topic has 3 replies, 2 voices, and was last updated 2 years, 6 months ago by xeon.
-
AuthorPosts
-
2022-05-16 at 2:26 pm #52093gjaxxxCustomer
Greetings Verge3D
I have a question about the Collision Material…
I am building a 3D environment (with Blender) for an upcoming exhibition, it consists of a main Scene where the ‘player’ spawns when entering the world. And several places (GLTF scenes) where a player can go to.
In the Main Scene there is a door that connects to all the different places (GLTF scenes) Besides this door there are buttons to choose from that load (append) the different scenes behind the door, when a button is clicked, the corresponding scene is loaded and when loading is done the door opens.
Everything works but for some reason i can not enter the loaded (appended) scene, the camera stays the same (GLTF scenes are appended) and every scene has the same collision material.It seems to be a problem with the collision material, i can only walk as far as the collision material of the main scene, but not continue walking into the appended scene even though the collision material of both scenes are the same and the meshes that have the collision material connect …
Ill ad a little screen capture vid here to visualize the problem…
Hope someone can help !
BestGJ
2022-05-16 at 2:38 pm #52097xeonCustomerJust a guess but I would imagine that if your collision material in the second room is the same as the first then you could have problems if that material also doesn’t exist in your hallway between the rooms.
You will have to do some testing to determine if the position of the camera is inside the room prior to constraining it if the constraint material is not continuous. You might want to add a camera tween event to move the person into the room guaranteeing the camera is inside your other floor before allowing them to move about.
Based on what I can see in your video your camera may be colliding with the first room’s collision material at the end of the hallway?
Xeon
Route 66 Digital
Interactive Solutions - https://www.r66d.com
Tutorials - https://www.xeons3dlab.com2022-05-17 at 9:22 am #52125gjaxxxCustomerHi Xeon, thank you for the quick reply !
I fixed the problem, In the end it was the collision material name, i didn’t notice that the collision material name in the 2e room had an extra .(dot) for some reason. so the collision material name was slightly different in both scenes and that was the reason it didn’t work. A, Slightly embarrassing, mistake on my end
Cheers !2022-05-17 at 2:24 pm #52134xeonCustomerGlad you found and fixed the problem.
Xeon
Route 66 Digital
Interactive Solutions - https://www.r66d.com
Tutorials - https://www.xeons3dlab.com -
AuthorPosts
- You must be logged in to reply to this topic.