Hello Guest

Author Topic: Camera Questions to fix RigidBody2d Gravity Issues  (Read 3320 times)

FreelanceGames

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 28
    • View Profile
Camera Questions to fix RigidBody2d Gravity Issues
« on: February 24, 2014, 01:45:51 am »
Based on my reading Unity 2D is limiting the maximum acceleration of 2D Gravity using RagidBody2D.  As such, it is necessary to alter the tk2dCamera Pixels per Meter.  That said, when I changed this setting I had a number of issues / questions...  As such, I made a short video with the questions because there were just two many screen shots needed:

1) Why are the movement handles for the tk2dCamera being displayed off to the right, rather than the origin?
2) Why are the movement handles for the screen named "TruckScreen" off the right, but all other screens look correct?
3) When I change the tk2dCamera Pixels per Meter setting to 100, why does the Preview and Game windows look so incorrect?

Here is the video with the questions:

http://www.youtube.com/watch?v=X2dw6S5-QcU&feature=youtu.be

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Camera Questions to fix RigidBody2d Gravity Issues
« Reply #1 on: February 24, 2014, 12:17:13 pm »
1 & 2. Your tool handle position is set to "Center", it should be "Pivot" if you care about the origins of objects.
3. Because your sprites are still drawing at 1 pixel per meter. You will need to change pixels per meter in the sprite collection settings to match.

Also don't forget you can have more than one camera, one for gameplay one for UI - could be a bit easier to manage that way.