|
Post by olafsosh on Jul 9, 2020 12:15:40 GMT
Hey! For testing purposes I set the 3D collider on a separate "CameraBoundaries" layer...
Added that GameObject onto Camera...
But in play mode the camera still follows the Player beyond the set collider.
What am I doing wrong? P.S. Also, is it possible to use Polygon 2D Collider on boundaries - I would really need a custom shape for them. Any other ways?
Olafs
|
|
|
Post by olafsosh on Jul 9, 2020 12:23:24 GMT
It's always like that - the moment I ask the question, I re-read the actual Documentation. Camera need to be OUTSIDE the colliders!..
Anyhoo - That P.S. question about Polygon 2D colliders - possible [obviously, if the cam is outside of them?
|
|
|
Post by Luís Pedro Fonseca on Jul 9, 2020 21:33:07 GMT
Hey Olafs, the GeometryBoundaries extension only works with 3D colliders, due to the fact that they work across all orientations.
Let me know if you have any other questions.
|
|
|
Post by olafsosh on Jul 10, 2020 8:59:07 GMT
Any good practices? Blender?
|
|
|
Post by Luís Pedro Fonseca on Jul 12, 2020 8:49:05 GMT
olafsosh If you really need to use complex geometry boundaries, then yeah, you'll need to create them in some 3D software like Blender. However, my recommendation is to stay away from geometry boundaries if possible. They usually cause more trouble than they solve, and are very hard to maintain.
|
|
|
Post by olafsosh on Jul 30, 2020 13:28:35 GMT
Yes, afraid of them myself!
One thing, though. At the moment I have only one box collider in an angle set at the beginning of the level. But when camera "climbs" up/down along it, there's still stuttering. Any settings I should be aware of?
|
|