Jump to content
GreenSock

Search the Community

Showing results for tags 'throwprops physics'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • GreenSock Forums
    • GSAP
    • Banner Animation
    • Jobs & Freelance
  • Flash / ActionScript Archive
    • GSAP (Flash)
    • Loading (Flash)
    • TransformManager (Flash)

Product Groups

  • Club GreenSock
  • TransformManager
  • Supercharge

Categories

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Personal Website


Twitter


CodePen


Company Website


Location


Interests

Found 1 result

  1. Hi! Have a slightly problem to deal with regarding the plugin Draggable and throwprops ON. I have some images that I can throw and want the image im throwing should stick to the most accurate position of another image based on x and y positions. Is there a way that I can run the snap function for getting the x, y properties as a singel function of the throwing object instead of calling x and y properties separated? So I can match the throwing object to all the images x & y positions in one function instead of calling it twice. Want to do something like this: Draggable.create('.image', { bounds:'.container', type:'x, y', edgeResistance:0.65, throwProps:true, snap:function(x, y) { var pos = get_closest_image_pos(); // returns array [x:Number, y:Number] return pos; } }); Instead of this: Draggable.create('.image', { bounds:'.container', type:'x, y', edgeResistance:0.65, throwProps:true, snap: { x: function(endValue) { return get_closest_image_pos_x(endValue); }, y: function(endValue) { return get_closest_image_pos_y(endValue); } }); Or is there another way? Many thanks for the Greensock library! Pure GOLD!!
×