Browse Source

- Changed the position of the boundary collision plane to stop the objects from going under the toolbox buttons.

MelvMay-GG 12 years ago
parent
commit
4bb237a

+ 2 - 1
modules/ConstantForceControllerToy/1/main.cs

@@ -94,8 +94,9 @@ function ConstantForceControllerToy::createBackground( %this )
     // Create border collisions.
     %object.createEdgeCollisionShape( -50, -37.5, -50, 37.5 );
     %object.createEdgeCollisionShape( 50, -37.5, 50, 37.5 );
-    %object.createEdgeCollisionShape( -50, -37.5, 50, -37.5 );
     %object.createEdgeCollisionShape( -50, 37.5, 50, 37.5 );
+    %object.createEdgeCollisionShape( -50, -34.5, 50, -34.5 );
+    
            
     // Add the sprite to the scene.
     SandboxScene.add( %object );    

+ 1 - 1
modules/PointForceControllerToy/1/main.cs

@@ -94,8 +94,8 @@ function PointForceControllerToy::createBackground( %this )
     // Create border collisions.
     %object.createEdgeCollisionShape( -50, -37.5, -50, 37.5 );
     %object.createEdgeCollisionShape( 50, -37.5, 50, 37.5 );
-    %object.createEdgeCollisionShape( -50, -37.5, 50, -37.5 );
     %object.createEdgeCollisionShape( -50, 37.5, 50, 37.5 );
+    %object.createEdgeCollisionShape( -50, -34.5, 50, -34.5 );
            
     // Add the sprite to the scene.
     SandboxScene.add( %object );