YouGroove Posted July 12, 2013 Share Posted July 12, 2013 self.entity:SetFriction(0.01,0.01) or self.entity:SetFriction(1,1) have the same effect : NO EFFECT Could it be corrected for some next patch ? Using solid physics are useless without that function working. Stop toying and make games Link to comment Share on other sites More sharing options...
Andy Gilbert Posted July 12, 2013 Share Posted July 12, 2013 Friction seems to work with me. Andy The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do. Leadwerks Game-Ready 3D Models:https://sellfy.com/gib3d Link to comment Share on other sites More sharing options...
YouGroove Posted July 12, 2013 Author Share Posted July 12, 2013 What values do you use ? Perhaps i must change it on the walls also ? Do you use LE2 or LE3 ? Stop toying and make games Link to comment Share on other sites More sharing options...
Josh Posted July 13, 2013 Share Posted July 13, 2013 I will be working on bug fixes tomorrow and this will get looked at. 1 My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
beo6 Posted July 13, 2013 Share Posted July 13, 2013 setfriction does work for me without any issues. I only applied it to my entity that is moving. not on the walls. I use Leadwerks 3 Link to comment Share on other sites More sharing options...
YouGroove Posted July 13, 2013 Author Share Posted July 13, 2013 Ok, i use a solid cube, and directly physics on it, no character controller at all. Perhaps i got something wrong ? Stop toying and make games Link to comment Share on other sites More sharing options...
beo6 Posted July 13, 2013 Share Posted July 13, 2013 tried it with a cube and no issues here. Try my example where you can set the friction on the fly: http://code-i.de/LE3/frictionTest.exe W,S,A,D and Mouse for camera I,K,J,L and Space for moving the box Up,Down,Left and Right for changing the Friction. ( i know the keys are awkward. ) You can have a look at the physicTest.lua if you can find anything that is different. However i don't do anything special i think. Link to comment Share on other sites More sharing options...
YouGroove Posted July 14, 2013 Author Share Posted July 14, 2013 yes the kinetic works. But static, i don't seen real effect by increasing value between 0 and 30 ? or i miss something. Stop toying and make games Link to comment Share on other sites More sharing options...
Josh Posted July 14, 2013 Share Posted July 14, 2013 Static friction controls how much force it takes to get something moving that is at rest: https://www.khanacademy.org/science/physics/forces-newtons-laws/inclined-planes-friction/v/static-and-kinetic-friction-example The example here works: http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/entity/entitysetfriction-r142 1 My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts