Probleme mit Rigidbody

The official Rising World Soundtrack is available!
You can also get the Soundtrack on Steam
  • Hallo,


    ich lade ein Prefab aus einem Unity Asset und füge ein Rigidbody hinzu.

    nun versuche ich die constrains zu verändern, was mir aber nicht gelingt.


    Prefab cube = Prefab( cubeasset );


    cube.addComponent ("Rigidbody");

    cube.setComponentProperty (null,"Rigidbody","constrains", 126); // 126 alles festhalten


    andere Werte (z.Bsp. angularDamping) der Komponente konnte ich verändern.


    Hat jemand vielleicht ein paar code Schnipsel ?

Participate now!

Don’t have an account yet? Create a new account now and be part of our community!