Box2D Cocos2d JS
<p><a href="https://i.stack.imgur.com/iq499.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iq499.png" alt="enter image description here"></a>I want to create a slope like in attached image in Box2D Cocos2d JS.
However, I am unable to create it properly when attached sprites to it.
My code is:</p>

<pre><code>new b2Vec2(0, 0),
new b2Vec2(100 / worldScale, -50 / worldScale),
new b2Vec2(200 / worldScale, 0 / worldScale)
</code></pre>

<p>The image dimensions is 200 * 50, and worldScale = 30.</p>