2D Toolkit Forum
2D Toolkit => Support => Topic started by: bloodymin on April 09, 2013, 07:29:19 pm
-
Before using tk2dcamera, due to my sprite image is small, so i have collision problem which are overlapped two objects.
But Unikron gave me an advise about
In the Physics manager, change minPenetrationForPenalty & gravity, your units are probably a bit too small for default Unity Physics settings.
http://docs.unity3d.com/Documentation/Components/class-PhysicsManager.html
I flow the instruction, then problem was solved.
Recently, i'm trying to use tk2dcameras because it's very useful & powerful. but after implementing tk2dcameras same problems has been happened again.
When character didn't get any action input[right after scene started], collide stuff seemed to be working fine.
but after player jumping it shows overlapping object. (please see attached pic)
This time i changed minPenetration setting as 0 or 0.000000001. but not working. even my sprite size(player 32*32 block 96*32) actual get bigger than before when i didn't use tk2dcamera.
would help me to solve this problem again?
i still want to keep using tk2dcamera with solving this problems,, i don't want to roll back stuff.
-
The sprites with tk2dCamera will be a lot bigger. You will need to increase the penetration threshold & gravity.
Option 2 - use a normal ortho camera. Next version of 2D Toolkit will have most of the tk2dCamera options support with normal ortho cameras. If you already have something working, I suggest just sticking with it, as it will just work in 2D Toolkit 2.0.
I can't tell what is wrong from your images, but if you can send me a repro case I'll be happy to look at it. support at unikronsoftware.com
-
:( i'm sorry i don't know how to share sample project. As i know sending scene file wouldn't work isn't it?
-
close down unity, zip up the project directory and send it to me via email / dropbox. Please don't post it here :)