Navigation

    CreatiCode Scratch Forum

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

    Player's rotation bugs when it goes 180°

    Help
    2
    6
    589
    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.
    • 白刃の亡霊
      白刃の亡霊 trusted helpers last edited by

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

      I can’t figure out the problem

      (a & d to rotate, W to move)

      Ghost of the White Blade

      info-creaticode 1 Reply Last reply Reply Quote 0
      • info-creaticode
        CreatiCode @白刃の亡霊 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.

        白刃の亡霊 1 Reply Last reply Reply Quote 0
        • 白刃の亡霊
          白刃の亡霊 trusted helpers @info-creaticode last edited by

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

          Ghost of the White Blade

          info-creaticode 1 Reply Last reply Reply Quote 0
          • info-creaticode
            CreatiCode @白刃の亡霊 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

            白刃の亡霊 1 Reply Last reply Reply Quote 0
            • 白刃の亡霊
              白刃の亡霊 trusted 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?

              Ghost of the White Blade

              info-creaticode 1 Reply Last reply Reply Quote 0
              • info-creaticode
                CreatiCode @白刃の亡霊 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