# Bend line between two points

**URL:** <https://forum.kirupa.com/t/bend-line-between-two-points/262978>\
**Category:** Uncategorized\
**Created:** [June 11, 2008, 3:26pm UTC](https://forum.kirupa.com/t/bend-line-between-two-points/262978 "2008-06-11T15:26:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![silkemarie](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@silkemarie](https://forum.kirupa.com/u/silkemarie)\
**Post date:** [June 11, 2008, 3:26pm UTC](https://forum.kirupa.com/t/bend-line-between-two-points/262978/1 "2008-06-11T15:26:01Z")

</div>

Hi,

I am looking for an answer concerning the following problem: I want to draw a bent line between two points. Simply using bezier curves won’t do it though, as I want a fairly realistic behaviour and the two points are not necessarily on the same height.

Any ideas would be appreciated.  
Silke

---

<div class="post-metadata">

**Author:** ![Iamthejuggler](https://avatars.discourse-cdn.com/v4/letter/i/ecc23a/32.png) [@Iamthejuggler](https://forum.kirupa.com/u/Iamthejuggler)\
**Post date:** [June 11, 2008, 3:37pm UTC](https://forum.kirupa.com/t/bend-line-between-two-points/262978/2 "2008-06-11T15:37:11Z")

</div>

A curve between two points is a straight line. You need at least 3 points to create a curve, unless you plan on randomly choosing a third.

---

<div class="post-metadata">

**Author:** ![silkemarie](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@silkemarie](https://forum.kirupa.com/u/silkemarie)\
**Post date:** [June 11, 2008, 3:43pm UTC](https://forum.kirupa.com/t/bend-line-between-two-points/262978/3 "2008-06-11T15:43:45Z")

</div>

true. which is why I need some information on how to find the third point given the known distance and angle between the two points and the length of the “string” to connect them.

---

<div class="post-metadata">

**Author:** ![sekasi](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@sekasi](https://forum.kirupa.com/u/sekasi)\
**Post date:** [June 11, 2008, 3:51pm UTC](https://forum.kirupa.com/t/bend-line-between-two-points/262978/4 "2008-06-11T15:51:55Z")

</div>

> Simply using bezier curves won’t do it though, as I want a fairly realistic behaviour and the two points are not necessarily on the same height.

But a bezier curve is the very definition of your problem.

Anyway. I’m not sure I understand what information you want. How to find the third point? I mean that all depends on where you want to place it on the line? You have to realize that if you have two given points on random positions and a line in between you can place a third point pretty much wherever and then draw a curved line through it. Specifics please 🙂

---

<div class="post-metadata">

**Author:** ![silkemarie](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@silkemarie](https://forum.kirupa.com/u/silkemarie)\
**Post date:** [June 11, 2008, 4:01pm UTC](https://forum.kirupa.com/t/bend-line-between-two-points/262978/5 "2008-06-11T16:01:01Z")

</div>

[QUOTE=sekasi;2340801]But a bezier curve is the very definition of your problem.

Anyway. I’m not sure I understand what information you want. How to find the third point? I mean that all depends on where you want to place it on the line? You have to realize that if you have two given points on random positions and a line in between you can place a third point pretty much wherever and then draw a curved line through it. Specifics please :)[/QUOTE]

Firstly, thanks for the reply. Well, consider a physically realistic environment in which two points are connected by a string. The position of the third point would be dependent on the length of the string, the position of the two points, the gravity and mass, I think. Now I am looking for a function for that.
