Notifications
Clear all

[Closed] Wrong rotation according the viewport

denisT, what do you mean when you say target?
the object? or what?

Thanks.

1 Reply
(@denist)
Joined: 11 months ago

Posts: 0

target is a geometry you draw hair on. hair itself is probably a geometry of your plugin as i guess

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