Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: DerickSinclair on November 18, 2015, 09:37:13 AM

Title: Drag and release object with momentum
Post by: DerickSinclair 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!
Title: Re: Drag and release object with momentum
Post by: DerickSinclair 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!
Title: Re: Drag and release object with momentum
Post by: DerickSinclair 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.
Title: Re: Drag and release object with momentum
Post by: djaydino on November 24, 2015, 01:55:10 AM
Hi,
try playing around with the angular drag on the rigidbody.