RotateBrush

Discuss any general programming issues here
Post Reply
User avatar
lazi
Posts: 650
Joined: Thu Feb 24, 2011 11:08 pm

RotateBrush

Post by lazi »

It seems to me, that the angle of rotation is accepted like it is integer in degree.
It is a limitation of the OS or Hollywood?

Could it be change this in the future?
I need more precise rotation. (Not for the Katica game :)

Bye!
User avatar
airsoftsoftwair
Posts: 5887
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: RotateBrush

Post by airsoftsoftwair »

Right, I'll see if I can change this for the future. As a workaround, you can just generate the rotation matrix yourself and pass it to TransformBrush(). Then you get very precise results.
User avatar
lazi
Posts: 650
Joined: Thu Feb 24, 2011 11:08 pm

Re: RotateBrush

Post by lazi »

Thanks!
Just looked after Transformbrush and it seems very very powerful.
The only drawback is that it needs a copy of the brush.

Has it a different code than the other rotation? It seems to be faster than RotateBrush.
User avatar
airsoftsoftwair
Posts: 5887
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: RotateBrush

Post by airsoftsoftwair »

Internally, RotateBrush() just generates a transformation matrix and then calls TransformBrush() so there shouldn't be any speed differences.
Post Reply