Emax
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by Emax
-
-
I'm not worried about the trig. I'm just trying to figure out the simplest path to coding the billiard balls effect, and since I just spent $99 on GreenSock, I was hoping to make use of it. So, if I use an "event callback", and write the code to detect ball collision, along with the code to reset ball velocities, is it possible to update the tweened element to a new velocity vector? If not, that means doing my own animation and not using GreenSock at all, in which case I just paid $99 for something I can't use. Then there's the rotation aspect... shoot.
-
I need to implement collision detection on circular elements. Determining whether 2 objects collide is pretty straight forward (sum of radii is less than distance between centers), but I can't seem to find much on the topic of changing the objects velocity and direction after the collision. I've written code like this in years gone by, but I was hoping I'd be able to save some time by not recreating the wheel. Even better would be a plugin that handles multiple collisions, and sets the objects on to their new paths with their new velocities. Any help is appreciated.
-
Thanks! All is working fine, now.
- 1
-
This is my first day working with Greensock, so be gentle. I'm calling Draggable.create with throwProps:true, but the throw effect doesn't seem to occur (dragging works fine).
In HTML:
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.19.1/TweenMax.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.19.1/jquery.gsap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.19.1/plugins/CSSPlugin.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.19.1/utils/Draggable.min.js"></script>
In JS:
Draggable.create(_coin_image, {type:"x,y", throwProps:true});
Collision Detection, etc
in GSAP
Posted
Thank you very much. I've been coding for almost 50 years and I will say you guys have an outstanding product. If, later on, I need what it offers I will come back. Also, your customer support appears to be excellent. Thank you!