playMaker

Author Topic: Drag and release object with momentum  (Read 1639 times)

DerickSinclair

  • Playmaker Newbie
  • *
  • Posts: 13
Drag and release object with momentum
« on: November 18, 2015, 09:37:13 AM »
Hi all,

I'm trying to apply momentum to a dragged and released object.  The player can drag it within a clamped Y-axis.  I would like the object to continue on the Y axis path (slowing down over time), and bounce between the clamped values. 

I've watched the tutorial on iTween, but am not sure that really applies to this. 

Thanks in advance!

DerickSinclair

  • Playmaker Newbie
  • *
  • Posts: 13
Re: Drag and release object with momentum
« Reply #1 on: November 18, 2015, 04:13:51 PM »
In researching this further, it seems like I just need to look into Unity's rigidbody component more.  I'm pretty new to both unity and playmaker, so sorry if this is the wrong forum for this question. 

Any thoughts are still welcomed!

DerickSinclair

  • Playmaker Newbie
  • *
  • Posts: 13
Re: Drag and release object with momentum
« Reply #2 on: November 23, 2015, 11:07:37 PM »
Bump. 

I've messed with the Physics 2d component for a bit.  I'm able to get my objects to fall nicely using gravity, but haven't figured out how to make a dragged and released object slow down over time.  I'm assuming this is a pretty common thing to do... there must be a simple solution I'm overlooking.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Drag and release object with momentum
« Reply #3 on: November 24, 2015, 01:55:10 AM »
Hi,
try playing around with the angular drag on the rigidbody.