robertnyc Posted October 8, 2010 Share Posted October 8, 2010 Has anyone used TweenMax to generate semi-realistic waves? It seems like something interesting could be done with the bezier plugins (although perhaps AS3's curveTo would suffice), and the physics plugin. If no, any pointers to good code that shows how it might be done? Link to comment Share on other sites More sharing options...
GreenSock Posted October 8, 2010 Share Posted October 8, 2010 Are you literally trying to make a curvy line where the waves travel in a certain direction? That'd be as simple as tweening it along the x-axis under a mask (or scrollRect). But there are a bunch of ways you could create waves with math - it'd be best if you posted a sample or something. Link to comment Share on other sites More sharing options...
robertnyc Posted October 9, 2010 Author Share Posted October 9, 2010 I'm trying to figure out how to something like this: http://www.hakim.se/experiments/html5/wave/03/ It's math I know (which math?) -- but bezierThrough seemed so tantalizingly close -- tried with curveTo from the flash lib, and it works great for one curve, but all the rest......no Link to comment Share on other sites More sharing options...
GreenSock Posted October 9, 2010 Share Posted October 9, 2010 You could probably just tween the control points on a Bezier and use an onUpdate to redraw it on every frame - no need to use bezierThrough plugin. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now