Jump to content

Increase the width of SimpleRope


soylomass
 Share

Recommended Posts

Hi,

I want to increase the width of SimpleRope, which currently depends on the size of the texture used to build it.

Tha problem is that changing the textureScale argument, as the docs say, change the texture wrapping mode to repeat, and break things even when setting the WrapMode back to Clamp immediately after.

Is there a way to change the rope width without affecting anything else, and that also works with a texture from a SpriteSheet?

Thanks in advance

Link to comment
Share on other sites

Posted (edited)

I see RopeGeometry (which is used by SimpleRope) has a width argument, which is filled by SimpleRope with texture.height. Will changing that argument do the trick?

Edited by soylomass
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...