THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 08/10/2003 at 10:23, xxxxxxxx wrote:
Cinema 4D Version: 8.207
Platform: Windows ;
Language(s) : C++ ;
I am aligning objects on the tangent of a spline on a certain position of the spline. This doesn´t work correctly though. This is how I am doing it:
subdiv = 10; spline->InitLength(0,NULL); length = spline->GetLength(); interpolation = length/subdiv; [...] Vector rot = VectorToHPB(spline->GetSplineTangent(spline->UniformTonatural(i*interpolation/length),0));
I am then setting the rotation of the objects. But I encounter problems. When for example using the arrange function in Cinema 4D I get the result on the left and with my code I get the result on the right. You can see that in the upper part, the rotation is wrong (and at position-y == 0 it´s most of the time completely messed up). Does anybody know how to fix this behavior or what is wrong? I thought GetSplineTangent should already give me the correct result.