How to freeze rigidbody’s rotation X and Z?

Forums 💬 FlowCanvas ⚙️ Support How to freeze rigidbody’s rotation X and Z?

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #12159
    cheapmiao
    Participant

      [attachment file=”FlowScript.png”]
      As you can see, I want to freeze Rotation both X and Z, but I cant find a way to combine two constraint into one constraint, list or array and so on. How can I solve it?
      Thanks for your reply!

      #12165
      nikitalino
      Participant

        maybe you can duplicate set constrains once more and connect z to it

        #12164
        cheapmiao
        Participant

          Sorry for my very late reply, i just give up at that time

          I could still explain why i give my issue now. As you can see, i seted constraint twice and there is only one constraint left at last.

          #12163
          cheapmiao
          Participant

            this is test image

            #12162
            nikitalino
            Participant

              ye i see you cant choose both methods/it something related to enums.

              i tried to create null with rigidbody  with x and z checked and transfer its data to another object and it shows  integer 80/ but  if i connect integer it is an error. so you need to wait somebody more expirienced who can tell or show what to do / or you can use rude method and create null in assets with x and z checked and get its data and apply to object in game

              it was answer for standart scripting but dont know how to implement  https://answers.unity.com/questions/1093545/freeze-rigidbody.html

              #12161
              cheapmiao
              Participant

                Thanks! Anyway, you reminded me it is a 1010000(2)

                #12160
                Gavalakis
                Keymaster

                  Hello,

                  I have just added some new nodes related to enum bitwise operations and attached the modified file for you here.
                  You will be able to find the “OR”, “AND” and “INVERT” operators under the “Functions/Implemented/Operators/Flags” category. With the “OR” operator you will now be able to combine two different RigidbodyContraints (in your case) into one.

                  Let me know if that works for you.
                  Thanks!

                Viewing 7 posts - 1 through 7 (of 7 total)
                • You must be logged in to reply to this topic.