Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
I'm new user of this engine. id love to trial error with this engine just because only this engine did good (no bugs/problems) when i created and show in webgl on browser rather then others with bugs. Also i tried with android phone (inside apk) and its still have a fast and good performance. Congratulations! But i need help about camera setting I opened a tank scene file that used a model viewer camera type. I need solution how to set this camera not to move below the floor node. I used an "If below the sea level do something" behaviour to detect camera position, but how to stop the camera node not to go below the sea level? Maybe there is a script anyone know how. I dont want to see below the 3d object, i just need to rotate left right up and down but not below the floor/sea level i plan to change the tank object with my gltf house so i dont want to sea below the house just limit above the road. Thanks. |
||||
|
there is many ways how to do it.. this version i made checks if camY is lower than camTargetY (you can adjust it -but make sure your cam pos is not in block zone at startup) Download project file with script i made. https://drive.google.com/file/d/... Script itself: //Script by sven from ambiera forum. |
|