物理系统中使用关节weldjoint的两个刚体都禁止旋转fixedrotation时会有报错
报错信息:
Uncaught TypeError: K.Solve22(…).Invert is not a function
at b2WeldJoint.SolvePositionConstraints (box2d.js:15139)
at b2Island.Solve (box2d.js:12194)
at b2World.Solve (box2d.js:9586)
at b2World.Step (box2d.js:9073)
at CCClass.update (CCPhysicsManager.js:205)
at TheClass.update (CCScheduler.js:405)
at TheClass.mainLoop (CCDirector.js:1474)
at callback (CCGame.js:581)
需求要求连接的两个刚体又都必须不能旋转的,有解决方法吗?
要重现的话把官方的物理引擎demo下使用weldjoint的事例中两个刚体勾选禁止旋转就能重现
