Skip to main content
gamedev.net
🔒 Locked

Simple question - quadratics

Started by mpledge52 0 replies 500+ views
Original Post
mpledge52
mpledge52
Hi everyone. Just a quick question. I'm making a camera engine for my program. What I want to do is have the camera follow a curve from one position to another. This image might make it simpler to explain: image Point Y has coordinates of (80000, -37000) and point X has coordinates (47500, -1500). How do I calculate the equation of the curve that connects the two? The shape is not that important, as long as it drops dramatically at the start then levels out its fine. Thanks for any help.
HappyCoder
HappyCoder
Bezier Curves

These could be useful. I recommend the cubic curves because it will allow for more flexibility. Although you could probably get your specific result with a quadratic.
My current game project Platform RPG

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.