playMaker

Author Topic: Set / Get Rigidbody and Physic Material[SOLVED]  (Read 5314 times)

dasbin

  • Junior Playmaker
  • **
  • Posts: 92
Set / Get Rigidbody and Physic Material[SOLVED]
« on: January 15, 2012, 07:25:00 PM »
I apologize if I am missing something obvious and this already exists somewhere.

But I've looked at all the actions in PlayMaker and can't find ones for getting or setting RigidBody properties (freeze x/y/z position/rotation, interpolate, collision detection, drag, etc).
There are a couple small Actions for setting Gravity, Kinematic, and Mass, that's it.

Also nothing for getting or setting Physic Material.

This seems like a bit of an oversight considering these are core functionality of Unity.

Right now I'm calling a custom script to change these behaviours, which is not only clunky, it is also bad for performance (since the script has to be called multiple times on different objects, it must be working in FixedUpdate() even though it just needs to change the settings once when called - there is probably a better way to do this in scripting anyway, but I am not a programmer).

Anyway, having a built-in Action for this would make a whole lot of sense.
« Last Edit: October 07, 2013, 03:11:27 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Set / Get Rigidbody and Physic Material
« Reply #1 on: January 16, 2012, 04:28:22 AM »
good point. I think this kinds of needs ( for example to set the interpolate at runtime) is small, but nonetheless for completness it would be good to have them

 if you have a need in particular, let me know, and I'll do them custom actions.

 Bye,

 Jean

dasbin

  • Junior Playmaker
  • **
  • Posts: 92
Re: Set / Get Rigidbody and Physic Material
« Reply #2 on: January 16, 2012, 02:44:26 PM »
Thanks very much.

Well, right now I'm A) changing the physic material, and B) engaging and disengaging an X-position constraint lock while leaving other currently-engaged constraints on (the only way I found to do this without resetting the others was to re-declare all the constraints every time, but I'm sure there's a better way)

taforyou

  • Playmaker Newbie
  • *
  • Posts: 14
Re: Set / Get Rigidbody and Physic Material
« Reply #3 on: October 02, 2013, 10:41:55 AM »
I'm sorry for dig this topic. But i really need to find how to set variables in rigidbody properties thought Playmaker

all variables would be nice if possible according to unity3d referencehttp://docs.unity3d.com/Documentation/ScriptReference/Rigidbody.html

actually variables that i really need to config are about angular related (eg. angular velocity)

if there any thread that already solve my issue  please tell me or is there any possible that i can have these action ?

Thank you
« Last Edit: October 02, 2013, 10:44:12 AM by taforyou »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Set / Get Rigidbody and Physic Material
« Reply #4 on: October 03, 2013, 02:42:25 AM »

taforyou

  • Playmaker Newbie
  • *
  • Posts: 14
Re: Set / Get Rigidbody and Physic Material
« Reply #5 on: October 06, 2013, 03:40:37 AM »
Thank you so much jean i really appriciate that   :)