Bend line between two points

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

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.

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.

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 :slight_smile:

[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.