Skip to content

Commit 7d5673a

Browse files
committed
Fix wrong body dimensions from a scaled game object
1 parent a312d03 commit 7d5673a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/physics/arcade/Body.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ var Body = new Class({
3333

3434
function Body (world, gameObject)
3535
{
36-
var width = (gameObject.width) ? gameObject.width : 64;
37-
var height = (gameObject.height) ? gameObject.height : 64;
36+
var width = (gameObject.displayWidth) ? gameObject.displayWidth : 64;
37+
var height = (gameObject.displayHeight) ? gameObject.displayHeight : 64;
3838

3939
/**
4040
* The Arcade Physics simulation this Body belongs to.

0 commit comments

Comments
 (0)