Hello Guest

Author Topic: TK2Dcamera and PHYSICS setting problems  (Read 4741 times)

bloodymin

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 10
    • View Profile
TK2Dcamera and PHYSICS setting problems
« 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

Quote
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.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: TK2Dcamera and PHYSICS setting problems
« Reply #1 on: April 10, 2013, 12:22:00 am »
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

bloodymin

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: TK2Dcamera and PHYSICS setting problems
« Reply #2 on: April 10, 2013, 01:45:51 pm »
:( i'm sorry i don't know how to share sample project.  As i know sending scene file wouldn't work isn't it?


unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: TK2Dcamera and PHYSICS setting problems
« Reply #3 on: April 10, 2013, 01:47:54 pm »
close down unity, zip up the project directory and send it to me via email / dropbox. Please don't post it here :)