Fork me on GitHub
Not signed in (Sign In)
    • CommentAuthorsibhod
    • CommentTimeNov 23rd 2009
     
    I noticed when applying RotationalFriction to particles, if the particle's angular velocity is negative it would accelerate instead of decelerate the rotation. Adding a Math.abs() in the scale calculation fixes it:

    var scale:Number = 1 - ( _friction * time ) / ( Math.abs( p.angVelocity ) * p.inertia );
    • CommentAuthorRichard
    • CommentTimeDec 4th 2009
     
    Doh! Thank you, I'll fix it in the next release.