Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
hyperPad

hyperPad Forum

  1. Home
  2. Help and Support
  3. Anchor point

Anchor point

Scheduled Pinned Locked Moved Help and Support
28 Posts 6 Posters 8.0k Views 2 Watching
  • 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.
  • iTap DevelopmentI iTap Development

    @Aidan-Oxley hey, so I’m just coming back to this(I got a 3d printer so I’ve been busy with that!);
    What do you need the “initial angle” for?
    And I’m not sure as to the purpose of the behaviors in the screen shot.0_1509768978624_1A339C64-88B6-41E1-8C8C-A6109AC1CEDC.png

    Aidan_FireA Offline
    Aidan_FireA Offline
    Aidan_Fire
    wrote on last edited by
    #21

    @iTap-Development Jack is right. This is how you work out the diagonal distance between two points if you know their coordinates.

    iTap DevelopmentI 1 Reply Last reply
    0
    • iTap DevelopmentI iTap Development

      @Aidan-Oxley hey, so I’m just coming back to this(I got a 3d printer so I’ve been busy with that!);
      What do you need the “initial angle” for?
      And I’m not sure as to the purpose of the behaviors in the screen shot.0_1509768978624_1A339C64-88B6-41E1-8C8C-A6109AC1CEDC.png

      D Offline
      D Offline
      Deeeds
      wrote on last edited by
      #22

      @iTap-Development A hacky, tacky way to achieve the goal:

      Create a dummy object that you'll use as a virtual anchor point. Use the physics weld joint to bind your rotating object to the dummy object at the position you want relative to the virtual anchor point. Then rotate the dummy object. This should give you the result you want, but will ruin anything else regarding physics.

      But I agree. The anchor point should be respected by the rotate behaviour.

      iTap DevelopmentI 1 Reply Last reply
      0
      • D Deeeds

        @iTap-Development A hacky, tacky way to achieve the goal:

        Create a dummy object that you'll use as a virtual anchor point. Use the physics weld joint to bind your rotating object to the dummy object at the position you want relative to the virtual anchor point. Then rotate the dummy object. This should give you the result you want, but will ruin anything else regarding physics.

        But I agree. The anchor point should be respected by the rotate behaviour.

        iTap DevelopmentI Offline
        iTap DevelopmentI Offline
        iTap Development
        wrote on last edited by
        #23

        @Deeeds that would work kinda, but yeah it wouldn’t work well in some ways.

        1 Reply Last reply
        0
        • Aidan_FireA Aidan_Fire

          @iTap-Development Jack is right. This is how you work out the diagonal distance between two points if you know their coordinates.

          iTap DevelopmentI Offline
          iTap DevelopmentI Offline
          iTap Development
          wrote on last edited by
          #24

          @Aidan-Oxley @Jack8680 oh duh! So you are just multiplying the x and y by them selves for the x and y distance to the other point?
          I think I always just added the actual x and y distances.

          Aidan_FireA 1 Reply Last reply
          0
          • iTap DevelopmentI iTap Development

            @Aidan-Oxley @Jack8680 oh duh! So you are just multiplying the x and y by them selves for the x and y distance to the other point?
            I think I always just added the actual x and y distances.

            Aidan_FireA Offline
            Aidan_FireA Offline
            Aidan_Fire
            wrote on last edited by Aidan_Fire
            #25

            @iTap-Development You know Pythagora’s theorem? If you have a right angle triangle, a is the length of one side, b is the length of the other and c is the length of the hypotenuse (the longest one, diagonal if a is x and b is y), then c² = a² + b². What I was trying to work out is the diagonal distance between two points. I can easily get the x and y distance between them, but I wanted diagonal.

            iTap DevelopmentI 2 Replies Last reply
            0
            • Aidan_FireA Aidan_Fire

              @iTap-Development You know Pythagora’s theorem? If you have a right angle triangle, a is the length of one side, b is the length of the other and c is the length of the hypotenuse (the longest one, diagonal if a is x and b is y), then c² = a² + b². What I was trying to work out is the diagonal distance between two points. I can easily get the x and y distance between them, but I wanted diagonal.

              iTap DevelopmentI Offline
              iTap DevelopmentI Offline
              iTap Development
              wrote on last edited by
              #26

              @Aidan-Oxley sorry! I was confusing with something else in my project 🤦‍♂️ I’ve only got a few hours of sleep every night for a week due to my 3d printer addiction! so my brain doesn’t work....

              1 Reply Last reply
              0
              • Aidan_FireA Aidan_Fire

                @iTap-Development You know Pythagora’s theorem? If you have a right angle triangle, a is the length of one side, b is the length of the other and c is the length of the hypotenuse (the longest one, diagonal if a is x and b is y), then c² = a² + b². What I was trying to work out is the diagonal distance between two points. I can easily get the x and y distance between them, but I wanted diagonal.

                iTap DevelopmentI Offline
                iTap DevelopmentI Offline
                iTap Development
                wrote on last edited by
                #27

                @Aidan-Oxley so why are you multiplying the sine and cosine angles by the diagonal distance?

                Aidan_FireA 1 Reply Last reply
                0
                • iTap DevelopmentI iTap Development

                  @Aidan-Oxley so why are you multiplying the sine and cosine angles by the diagonal distance?

                  Aidan_FireA Offline
                  Aidan_FireA Offline
                  Aidan_Fire
                  wrote on last edited by
                  #28

                  @iTap-Development I don’t remember lol. There is a reason though. It’s probably one of those formulas like hypotenuse = sin(θ) × opposite.

                  1 Reply Last reply
                  0

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Search