草庐IT

linearDamping

全部标签

ios - SpriteKit linearDamping - 最大?

注意Apple的doco断言https://developer.apple.com/documentation/spritekit/skphysicsbody/1519796-lineardampingThispropertyisusedtosimulatefluidorairfrictionforcesonthebody.Thepropertymustbeavaluebetween0.0and1.0.Thedefaultvalueis0.1.Ifthevalueis0.0,nolineardampingisappliedtotheobject.事实上:您可以设置大于1的值-因此,“1