Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
so i have a bug with 3rd person camera its not colide with objects therese on vidio https://youtu.be/u8zESIzUi_o pleace help! |
||||
|
just add the behaivour "collide when moved" on to the cam if you dont want your cam to go trough objects, otherwise add the behaivour to the player to make him collide with the enviorment |
||||
|
If the player gets under map? Colide when moved on player but it just not have any collision, and he worked on TERRAIN but was going through a hills what would i do? |
||||
|
Well, you either have to build your level so it is not possible, or introduce a custom solution that works specifically for you your game. If you code, it's not that hard. You can set a dummy node in at place there camera should be and child it to the player node. Now every frame raycast from player position to dummy node's position. If there is no collision with the game world set camera to the dummy node position, otherwise set it to the collision point. Probably, not exactly to the collision point, but a bit closer to player model, but you got the idea. I would suggest just accepting the limitations and build your levels the way camera doesn't stuck aynwhere. |
||||
|
Or you could just use this third-person camera solution - it looks like the camera collision works there: https://samgrady.itch.io/third-p... |
||||
|
Thanks, i do it for start creating that again! |
||||
|
|