Developing spring action in corona

亡梦爱人 提交于 2019-12-14 03:25:36

问题


I am trying to develop a spring which has its one end attached to a static roof and the other end has a body with mass m attached to it.

Whenever I drag the load(body attached to spring) the spring must also get displaced from its mean position and must behave like a real spring, after few oscillations it must come back to initial position.

Now I have developed a spring using a few rectangles which are joined using a pivot joint, a load is also attached using the pivot joint. Here when I drag the load, the spring oscillates from left to right like a pendulum and not like a real spring. I want oscillation up and down and not left to right.


回答1:


http://www.ludicroussoftware.com/blog/2011/09/01/corona-physics-forced-bouncing/



来源:https://stackoverflow.com/questions/8162103/developing-spring-action-in-corona

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!