playMaker

Author Topic: Rigidbody Drag  (Read 2416 times)

Andys

  • Playmaker Newbie
  • *
  • Posts: 30
Rigidbody Drag
« on: May 25, 2013, 04:49:25 PM »
is it possible in Playmaker to change the drag value in a rigid body when a car triggers through a box collieder?

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
Re: Rigidbody Drag
« Reply #1 on: May 25, 2013, 05:25:50 PM »
Use the Set Property action.

Get and Set Property let you change most properties in regular Unity components:


Andys

  • Playmaker Newbie
  • *
  • Posts: 30
Re: Rigidbody Drag
« Reply #2 on: May 26, 2013, 03:58:12 PM »
Alex,
thanks, I've been using the get and set to start and stop audio tracks, never thought to use if for drag.

Wasn't sure if you had a specific action like you do for add mass etc.

thanks

Andy

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
Re: Rigidbody Drag
« Reply #3 on: May 26, 2013, 05:45:27 PM »
The Get and Set Property actions were newer additions, so you wouldn't need lots of little Get/Set actions. Although Get/Set actions for common properties and third party plugins are nice since the UI is a little simpler... instead of having to dig through properties and figure out which one does what...