Navigation

    CreatiCode Scratch Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • CreatiCode

    Player's rotation bugs when it goes 180°

    Help
    2
    6
    546
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • TNG
      𝕋һеΝісҡոаʍеƓοѵеɾոʍеոҭ Best Forum Helpers last edited by

      https://play.creaticode.com/projects/679bd3b9e83001fc08db4cae

      I can’t figure out the problem

      (a & d to rotate, W to move)

      Yes, a cat with a multidimensional laser cannon living in space. No, don’t ask why— when [REDACTED] fires, realities shatter, stars bleed, and even the darkest void fears the claws hunting a lost soul only he can save. Survival? That’s just the beginning.

      info-creaticode 1 Reply Last reply Reply Quote 0
      • info-creaticode
        CreatiCode @TNG last edited by

        @011830-0a42ef84

        To make an object rotate, there are 2 separate methods, but you can not mix them:

        Method 1: operate on the mesh directly, such as using the “set speed” block

        Method 2: delegate the control to the 3D physics engine, then set the rotation speed on the physics body.

        In your case, you are using the physics engine, so the “set speed” block won’t work.

        In general, it is much easier to operate on the mesh object yourself instead of using the physics engine, since you have much more control. You only need to use the physics engine when you need very realistic physics simulations.

        TNG 1 Reply Last reply Reply Quote 0
        • TNG
          𝕋һеΝісҡոаʍеƓοѵеɾոʍеոҭ Best Forum Helpers @info-creaticode last edited by

          @info-creaticode Can you make an example? I don’t completely understand what you mean

          Yes, a cat with a multidimensional laser cannon living in space. No, don’t ask why— when [REDACTED] fires, realities shatter, stars bleed, and even the darkest void fears the claws hunting a lost soul only he can save. Survival? That’s just the beginning.

          info-creaticode 1 Reply Last reply Reply Quote 0
          • info-creaticode
            CreatiCode @TNG last edited by info-creaticode

            @011830-0a42ef84

            Sure. To make the avatar rotate, since it already has physics body, you need to use this block at the bottom:

            3ed3dc46-53ec-4b14-9f07-f4008643d7fa-image.png

            TNG 1 Reply Last reply Reply Quote 0
            • TNG
              𝕋һеΝісҡոаʍеƓοѵеɾոʍеոҭ Best Forum Helpers @info-creaticode last edited by

              @info-creaticode will this help the player turn it’s full rotation without snapping back to the original angle?

              Yes, a cat with a multidimensional laser cannon living in space. No, don’t ask why— when [REDACTED] fires, realities shatter, stars bleed, and even the darkest void fears the claws hunting a lost soul only he can save. Survival? That’s just the beginning.

              info-creaticode 1 Reply Last reply Reply Quote 0
              • info-creaticode
                CreatiCode @TNG last edited by

                @011830-0a42ef84

                Can you try it and let us know if there is any problem? You can also try to get help from our AI assistant.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post