misunderstanding on EvaluateBezier ?! please help..
from documentation : EvaluateBezier -> " Generates a list of sample points on a Bezier curve defined by 2 points."
the first parameter to be passed is ControlPoints , an "Array of 4 FVectors (vert1, controlpoint1, controlpoint2, vert2)." so I expected to have to pass an array of Fvector , but the declaration for this parameter is "const FVector * ControlPoints" , therefore a pointer to only one Fvector (I think) .
inside the evaluateBezier function, ControlPoints is treated with ControlPoints,ControlPoints ..and so on .
so, how I should declare (and use) the variable to be passed ?
thanks for your help .
asked May 26 '15 at 10:13 AM in C++ Programming
When you pass in an array, you are really just passing around a pointer to the first element of that array. It's a bit confusing if you don't understand how arrays work under the hood in C++, but you're on the right track.
You should be able to just declare, populate, and pass in your array like so:
answered May 26 '15 at 02:33 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here