#Patch v1.696
1 messages · Page 1 of 1 (latest)
First 

nice

Only Lua updates? 
yes Lua, no others
lua supremacy
💪 Lua
Wow, cool, now we can move spawned grounds with addPhysicobject e.e


hm, I don't think so, there's no way to make the floor move at a constant enough speed for that without gravity being low.
And yet, if the contact listener doesn't work with the floor marked "do not collide with mice", the mouse will fly away from where it was on impact.
But could make dynamic elevators for example
Like, you got to X position, the floor lifts and starts taking you to Y place.
You can just make the mass low and velocity high
just a quick code I did for testing and it works fine without any of the said issues :P
tfm.exec.newGame(0)
system.bindMouse("King_seniru#5890", true)
eventMouse = function(name, x, y)
tfm.exec.addPhysicObject(1, 700, y, {groundCollision=false,type=0,width=10,height=10,angle=45,dynamic=true,fixedAngle=true, mass=0.0001, contactListener=true})
tfm.exec.movePhysicObject(1, 0, 0, false, -800, -0)
end
eventContactListener = function()
print("hit")
end
hhm, didn't know it had velocity property in movePhysicObject, thought it was just to change position
