Velocity V and HPB Q [SOLVED]
-
On 08/08/2014 at 05:24, xxxxxxxx wrote:
I have a particles velocity vector
I want to change that to a new velocity vector - by changing the Pitch Angle
From the Velocity Vector I can get the HPB
I can then change the HPB angles
Q: How do get the new velocity vector, given the updated HPB.
tia
-
On 12/08/2014 at 08:44, xxxxxxxx wrote:
I've got a little further with this, but the more I read the more I think I'll need quaternions.
And it doesn't appear that they are supported in C4Ds Python SDK.
Any chance of that happening for R16?
-
On 13/08/2014 at 05:49, xxxxxxxx wrote:
Anybody there?
-
On 19/11/2014 at 06:44, xxxxxxxx wrote:
All I can tell you is I've been looking for them too and it seems they are not in the Python API...
-
On 20/11/2014 at 03:36, xxxxxxxx wrote:
I think you might need to get into Matrix transformations for that..
-
On 20/11/2014 at 08:53, xxxxxxxx wrote:
Hello,
you can create a vector by creating a Matrix from your HPB values and applying this Matrix to a default vector:
# create Matrix m = c4d.utils.HPBToMatrix(hpb) # default vector vec = c4d.Vector(0,0,1) # apply vec = m * vec
best wishes,
Sebastian