We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Confusing API and example
http://labs.phaser.io/edit.html?src=src/paths/curves/cubic%20bezier%20bounds.js
// Draw t curve.getPoint(path.t, path.vec); graphics.fillStyle(0xffff00, 1); graphics.fillCircle(path.vec.x, path.vec.y, 16);
Took me a while to understand that getPoint actually changes the path. Why you don't just do:
getPoint
path.vec = curve.getPoint(path.t);
is so strange for a get function to change your vars just like that
get
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Confusing API and example
http://labs.phaser.io/edit.html?src=src/paths/curves/cubic%20bezier%20bounds.js
Took me a while to understand that
getPoint
actually changes the path. Why you don't just do:is so strange for a
get
function to change your vars just like thatThe text was updated successfully, but these errors were encountered: