Harter
November 19, 2012, 9:53pm
1
Hi, developers!
I have to make invisible walls at the borders of the screen.
I see two variants of realization:
4 quads with mesh colliders with disabled/deleted MeshRendering.
4 box colliders without any meshes.
(upd.) 3. http://gyazo.com/96dbc3bbb236b9d63d90a75aabb1525a.png?1353363583
What should I use?
I’ve been developing game for iOS/Android. As you know, some Android devices are quite sucks and I’ve been using Unity’s physics, so I want to optimize game as much as it possible. Any advices would be very helpful.
Thanks!
Eric5h5
November 19, 2012, 11:41pm
2
Primitive colliders are always faster than mesh colliders.
–Eric
Bunzaga
November 20, 2012, 5:18pm
3
I had a similar question, about ‘cones’.
Is it better to use 3 cylinders or cubes, or a single ‘cone’ mesh?
The effect would be something like:
[] [] [] []
[ ] [ ] [ ] [ ]
[ ] [ ] [ ] [ ]
Where each box or cylinder would stack on top of the previous one, to get a ‘cone’ shape, like spikes.
Harter
November 21, 2012, 2:12pm
4
Even if I will use 4 of them instead of one optimized mesh collider?
Eric5h5
November 21, 2012, 4:46pm
5
Probably, but the best way is to test it and see.
–Eric