playMaker

Author Topic: Restrict velocity  (Read 2481 times)

shinodan

  • Full Member
  • ***
  • Posts: 180
    • Shinozone
Restrict velocity
« on: April 25, 2012, 01:20:30 PM »
Is there any way to limit how fast a rigidbody is flying through the air? too many people are going forward way too fast in my game when ive got them to test it.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Restrict velocity
« Reply #1 on: April 28, 2012, 06:38:58 PM »
I found this script you could use:
http://vonlehecreative.wordpress.com/2010/02/02/unity-resource-velocitylimiter/

I'll make an action version of this when I get a moment...

You can also try tweaking Mass and Drag.

wickedfrow

  • Playmaker Newbie
  • *
  • Posts: 7
Re: Restrict velocity
« Reply #2 on: January 21, 2013, 09:08:09 PM »
Hey Alex have you created this action?  I am having the same problem and I would like to be able to use the action you created, if you have that is.  Thanks a lot Alex.

-Jared

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Restrict velocity
« Reply #3 on: May 14, 2013, 02:28:18 PM »
Hi,

 Actually, you simply need to constraint the velocity using "Set Velocity"

https://hutonggames.fogbugz.com/default.asp?W325

check out the Break out game in the m2h game port I did:

https://hutonggames.fogbugz.com/default.asp?W942

the ball is constraint in velocity.

bye,

 Jean