• Advertisement
Sign in to follow this  

How should I plot a bezier curve?

This topic is 777 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

If the direction of p0 is 4.7, the control point of 0 should be -z in DirectX fashion somewhere

below the p0

and then the next waypoint has direciton 0.78, the control point of this waypoint should be somwhere on

the -x, -z of the map,

How do I know exactly where these control points are located?

I mean how should I convert the euler angles into vectors?

Thanks

Jack

Edited by lucky6969b

Share this post


Link to post
Share on other sites
Advertisement

I'm not sure what you're attempting to do, but you may want to swap to a Catmull-Rom spline instead of a bezier, as all it's control points are right on the curve.

Share this post


Link to post
Share on other sites

Hi guys,
I need to supply more info here.
So no, I don't want to plot the curve that way.
It's somewhat too random,
I want to be more precise.
Here I got a lot of information: 

Supplement

X:6 Y:6 initial dir:4.7
ClockWise 
Length: 0.117717
StartX: 4.80002
StartY: 5.00248
RadStart: 6.2708
RadTotal: 0.588585
EndX: 4.96497
EndY: 4.88939

So this guy is taking a right-hand turn for 30 degrees, facing down initially
while the center of rotation is at 4.8,5 until it hits 4.9, 4.8
How can I turn this info into a bezier or catmull rom?
Thanks
Jack

Edited by lucky6969b

Share this post


Link to post
Share on other sites

I'm not entirely sure what you're up to, but pathfinding + turning makes me think you might want to look into Dubin's Curves.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement