Skip to content

Commit

Permalink
Made it possible to turh the 2D physics world globally.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Gravgaard committed May 21, 2012
1 parent 6d1dc65 commit 5b9aa0f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -30,4 +30,5 @@ obj/
/Tests/Unity.Tests/Library
/Tests/Unity.Tests/Temp
/Demos/*/Temp
/Demos/*/Library
/Demos/*/Library
*.ncrunchsolution
1 change: 1 addition & 0 deletions Framework/PressPlay.FFWD/ApplicationSettings.cs
Expand Up @@ -43,6 +43,7 @@ public static class ApplicationSettings
/// If you do it a lot, consider flipping this and making the colliders kinematic.
/// </summary>
public static bool Physics_MoveStaticColliders = true;
public static Physics.To2dMode Physics_Default2DMode = Physics.To2dMode.DropY;

public static class DefaultCapacities
{
Expand Down
2 changes: 1 addition & 1 deletion Framework/PressPlay.FFWD/Components/Colliders/Collider.cs
Expand Up @@ -17,7 +17,7 @@ public abstract class Collider : Component
public bool isTrigger;
[ContentSerializer(Optional = true)]
public string material;
internal Physics.To2dMode to2dMode = Physics.To2dMode.DropY;
internal Physics.To2dMode to2dMode = ApplicationSettings.Physics_Default2DMode;
#endregion

[ContentSerializerIgnore]
Expand Down

0 comments on commit 5b9aa0f

Please sign in to comment.