playMaker

Author Topic: Set property-Rigidbody-constraints  (Read 1884 times)

wheretheidivides

  • Sr. Member
  • ****
  • Posts: 496
Set property-Rigidbody-constraints
« on: April 04, 2015, 06:01:49 PM »
When you use 'set property' on a constraint, it only takes the last one.  So if you set the X, then Y then Z, it will only save the Z.

look at the picture after running the scene.  It is supposed to set the Y position, then the X rotation and the Z rotation.  Now look at the inspector.  It only set the Z rotation.  This also happens to be the last action in the playmaker state.

If I delete setting the Z, then the only thing that gets set is the X rotation, which would be the last item in the state.  So what is happening is that only the last constraint is being set.

So basically, whatever you set then sets all of them.

1) Set all to nothing
2) Set all to constrained
3) Set 1 of the 3 (XYZ) to constrained (either position or rotation.  Not both).

A) You can not set 2 of the 3 to constrained.
B) When you set the rotation, it clears out the position
C) when you set the rotation, it clears out the rotation