We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37c64dc commit a13d623Copy full SHA for a13d623
1 file changed
src/physics/arcade/StaticBody.js
@@ -35,8 +35,8 @@ var StaticBody = new Class({
35
36
function StaticBody (world, gameObject)
37
{
38
- var width = (gameObject.width) ? gameObject.width : 64;
39
- var height = (gameObject.height) ? gameObject.height : 64;
+ var width = (gameObject.displayWidth) ? gameObject.displayWidth : 64;
+ var height = (gameObject.displayHeight) ? gameObject.displayHeight : 64;
40
41
/**
42
* The Arcade Physics simulation this Static Body belongs to.
0 commit comments