Notifications
Clear all
[Closed] Wrong rotation according the viewport
Page 4 / 4
Prev
Mar 16, 2016 9:46 pm
denisT, what do you mean when you say target?
the object? or what?
Thanks.
1 Reply
target is a geometry you draw hair on. hair itself is probably a geometry of your plugin as i guess
Mar 16, 2016 9:46 pm
ivanisavich, actually this is the full method of Rotate:
void MyModifier::Rotate( TimeValue t, ::Matrix3& partm, ::Matrix3& tmAxis, Quat& val, BOOL localOrigin )
{
::Matrix3 mat;
val.MakeMatrix( mat );
auto gtm = pblock->GetMatrix3( pb_sg_grav_dir, t ) * mat;
pblock->SetValue( pb_sg_grav_dir, t, gtm );
NotifyDependents( FOREVER, PART_GEOM, REFMSG_CHANGE );
}
Page 4 / 4
Prev