- Home /
This question was
closed Aug 29, 2021 at 08:28 AM by
andrew-lukasik for the following reason:
Problem is not reproducible or outdated
Question by
omarbendada · Apr 03, 2019 at 04:44 PM ·
line rendererline drawing
Line renderer can't fall when i use garavity(rigidby)
i create a line class and im use line renderer and edge collider 2D and rigidbody2D , good when drawing line with mouse the line still fixe in screeen wan't fall down . i tried all i know in unity but the problem it can't resolve . and thanks for reading my problem + support my ugly english langauge :).
Comment
Answer by cs120319992 · Apr 05, 2019 at 10:59 AM
Create two objects with rigidbody and isKinematic = true When you appear GetMouseDown, set in line renderer first position to first object, and when you appear GetMouseUp, set in line renderer second position to second object, and set for both object isKinematic to false