Hello! guys! I want to make a tool plugin like a brush tool, and i can use this tool draw objects on other object surface.And now, i want my drawn object to follow the direction of my mouse, like this:
Actually, i have a simple idea for this;
next_obj = parent_obj.GetDown().GetNext()
while next_obj:
pos = -(next_obj.GetPred().GetRelPos() - next_obj.GetRelPos())
normalized = pos.GetNormalized()
rot = c4d.utils.VectorToHPB(normalized)
pred = obj.GetPred()
pred.SetRelRot(rot)
next_obj = next_obj.GetNext()
But I think this method is too forced, I don't know if I can get the mouse direction information