Jump to content
Search Community

Jeffrey

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by Jeffrey

  1. I tried to search where I could before posting, but I don't know how I missed that. Thanks for the information!
  2. I have created a rather complex modal script functionality, and want to be able to alter my modal's draggable bounds on a drag start after they have already been initialized. Is there a method to do this? Simple code snippet as an example, though obviously it likely wouldn't work this way: Draggable.create(element, { bounds: bounds, onDragStart: function () { if (usenewbounds) { element.bounds = newBounds; } } });
  3. I think those are interesting ideas. As far as it not being integrated with TweenMax - and instead using one of the other approaches you mentioned - I'm not particular on that. Maybe having collision detection be another plugin might be a good solution? Any way you choose to pursue it, I look forward to this becoming part of the library. I know it will open a great deal of potential for me as I continue to use it in my products.
  4. I've been playing around with the new hitTest functionality this morning, and I have to say it's pretty fantastic and elegant, which is ideal. I'm wondering, though, if this same functionality can be extended to TweenMax to work with any GreenSock functionality and not just draggable. What I'm wanting to do is move elements around with the keyboard (or really any event) and be able to simply detect whether two or more elements are overlapping without that element having Draggable invoked on it. I've currently been writing my own collision detection engine to accomplish this, but being able to do it with a simple hitTest check would be far, far preferable, particularly as it would be elegantly integrated with GreenSock. As a simple example of one thing I'm doing right now: I invoke an animation which uses 3D transforms to move an element, and when that occurs I'd like to be able to do a simple check to know if during that animation the element collides with another, and allows me to then invoke another function at that point (such as stopping the animation). It would also be great if it could detect specifically which side of an element it collides with (left, top, right, bottom).
×
×
  • Create New...