We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cb8f2f9 + 081f1a2 commit 1c8cc36Copy full SHA for 1c8cc36
1 file changed
sti/plugins/box2d.lua
@@ -38,9 +38,15 @@ return {
38
end
39
40
local currentBody = body
41
-
+ --dynamic are objects/players etc.
42
if userdata.properties.dynamic == true then
43
currentBody = love.physics.newBody(world, map.offsetx, map.offsety, 'dynamic')
44
+ -- static means it shouldn't move. Things like walls/ground.
45
+ elseif userdata.properties.static == true then
46
+ currentBody = love.physics.newBody(world, map.offsetx, map.offsety, 'static')
47
+ -- kinematic means that the object is static in the game world but effects other bodies
48
+ elseif userdata.properties.kinematic == true then
49
+ currentBody = love.physics.newBody(world, map.offsetx, map.offsety, 'kinematic')
50
51
52
local fixture = love.physics.newFixture(currentBody, shape)
0 commit comments