Skip to content

Commit a13d623

Browse files
committed
Correct dimensions from game object
1 parent 37c64dc commit a13d623

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/physics/arcade/StaticBody.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ var StaticBody = new Class({
3535

3636
function StaticBody (world, gameObject)
3737
{
38-
var width = (gameObject.width) ? gameObject.width : 64;
39-
var height = (gameObject.height) ? gameObject.height : 64;
38+
var width = (gameObject.displayWidth) ? gameObject.displayWidth : 64;
39+
var height = (gameObject.displayHeight) ? gameObject.displayHeight : 64;
4040

4141
/**
4242
* The Arcade Physics simulation this Static Body belongs to.

0 commit comments

Comments
 (0)