Quantcast
Channel: Questions in topic: "sprite editor"
Viewing all articles
Browse latest Browse all 190

Sections of 2D Rope GameObject are Swinging In On Itself

$
0
0
Hello, I'm very new to Unity so thank you for your patience - seeking help after much Googling and experimenting: ---------- I followed a [YouTube tutorial](https://www.youtube.com/watch?v=_6Jq1wliUVQ) to implement a simple 2D rope. The issue is that when I move the rope around in the Scene view while the game is running, the rectangular subsets of the rope expand and/or collapse it on themselves. Is it an issue within the Rigidbody component or how the Sprite Editor was used? ---------- For example, rather than retaining it's rectangular shape the rope goes from this at the start: ![alt text][1] To this when swung: ![alt text][2] ---------- Quick TL;DR from the video how the rope was created - it's a small 2D .png image of a pixel stick that was: 1. Edited in Sprite Editor (specifically Skinning Editor) to add Bones and set auto Geometry and Weights 2. Added Bones through the Sprite Skin component of a new GameObject using the aforementioned Sprite 3. Connected the bones through Hinge Joint 2D components 4. Final small tweaks - setting lower and upper angle limits (60, -60) on each bone, setting the initial bone/hook to freeze rotation (Z), and disabling auto configure connected on the first bone. [1]: /storage/temp/206217-rope-example2.png [2]: /storage/temp/206216-rope-example.png

Viewing all articles
Browse latest Browse all 190

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>