Problem Description
The "update sine initial state" action causes the Init() function in the plugin to run to set the initial conditions. When angle sine is the selected mode, the Init() function converts the magnitude from degrees to radians, which is ok for the first Init() but for subsequent updates the function factors this.mag (already in radians) to radians again.
Attach a Capx
capx
Description of Capx
Two objects, one with sine (oscillate angle). Right arrow key to rotate second object and reset initial conditions of sine object.
Steps to Reproduce Bug
- Right arrow key
- Observe the oscillation apparently stops
Observed Result
The object appears to stop oscillating because the sine oscillation angle size becomes very small.
Expected Result
The degrees to readians conversion in Init() should only run during OnCreate() and not when updating the initial prams, because the angles are already in radians.
Affected Browsers
- Chrome: (YES)
- FireFox: (YES)
- Internet Explorer: (YES)
Operating System and Service Pack
W10 x64.
Construct 2 Version ID
r247 64 bit.