mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
Update physics.lua
This commit is contained in:
@@ -157,8 +157,8 @@ love.test.physics.Body = function(test)
|
||||
test:assertEquals('cool', body1:getUserData().love, 'check set user data')
|
||||
|
||||
-- check x/y direct
|
||||
test:assertEquals(10, body1:getX(), 'check get x')
|
||||
test:assertEquals(4, body1:getY(), 'check get y')
|
||||
test:assertEquals(10, math.floor(body1:getX()), 'check get x')
|
||||
test:assertEquals(4, math.floor(body1:getY()), 'check get y')
|
||||
body1:setX(0)
|
||||
body1:setY(0)
|
||||
test:assertEquals(0, body1:getX(), 'check get x')
|
||||
|
||||
Reference in New Issue
Block a user