d13 Posted June 8, 2014 Share Posted June 8, 2014 Hello! Does anyone know what the 3 arguments in the Proton.Velocity class represent? https://github.com/a-jie/Proton/blob/6056d670e8ca18092b0dc1d194a2c1abfc0f1ae9/src/initialize/Velocity.js Quote Link to comment Share on other sites More sharing options...
nixeldev Posted July 17, 2014 Share Posted July 17, 2014 It's not quite clear but from what I can gather from playing with it id say: rpan: The power of the emissionthapan: The angle of the emissiontype: I'm not sure but the examples put in 'polar' for this which I think means inclusive of negative... ie, if you give it a angle of between 0 and 90, with polar this would give -90 to 90? The examples show using a Proton.Span object as values for rpan and thapan, which I think allows it to get a random value within a range when needed. I'm just guessing though and I may be WAY off the mark. d13 1 Quote Link to comment Share on other sites More sharing options...
d13 Posted July 18, 2014 Author Share Posted July 18, 2014 @nixeldev: Thank you so much, that's brilliant detective work! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.