+1
Fixed

RigidbodyConstraints code generation bug?

Jesse Ford 3 years ago updated by Lazlo Bonin (Lead Developer) 2 years ago 4

These errors show up when I click the 'down' icon on the bolt toolbar.

When I go to the script generated by Bolt 2, the line reads as.

setConstraints.constraints = RigidbodyConstraints.FreezePositionX | RigidbodyConstraints.FreezePositionY | RigidbodyConstraints.FreezePositionZ | RigidbodyConstraints.FreezeRotationX | RigidbodyConstraints.FreezeRotationY | RigidbodyConstraints.FreezeRotationZ | (RigidbodyConstraints)-127;


Iin the graph this is what is there 

Hopefully this isnt something Im doing personally to goof this up since im 'resetting' the rigid in my test game so fast lol.

But heads up on this.

Im temporarily working around this by commenting out the line in the generated script for now.

Bolt Version:
2.0.0.a4
Unity Version:
2018.3.6f1
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):
Bolt 2

Somehow my images dont seem to be showing. Ill try the image tags on the reply doh!

Pending Review

Hi Jesse, thanks for the report, I'll have a look soon. We had to hack our way in for inspector support with some pseudo-flags enums in Unity and I think this might be related.

Fixed in Alpha

Fixed for Alpha 5.