sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Look At Function Problem

    Scheduled Pinned Locked Moved SketchyPhysics
    5 Posts 3 Posters 582 Views 3 Watching
    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.
    • P Offline
      Physicsguy1
      last edited by

      I noticed that an object that is set to look at another object will take a long time to point at the object. Can it be set to do this faster? lookAt guns on a bomber take a long time to adjust and cannot keep up with the bomber and fighter movement, for example.

      1 Reply Last reply Reply Quote 0
      • W Offline
        Wacov
        last edited by

        Yay! Thanks for bringing my attention to this... I worked out that if you use lookAt("object",number), then you can adjust how fast it turns. The higher the number, the faster the turn!

        lookAt("object",1000000) will have effectively no delay

        http://sketchup.google.com/3dwarehouse/cldetails?mid=3096a836877fb9af6cd8ad826e9017b8&prevstart=0

        1 Reply Last reply Reply Quote 0
        • P Offline
          Physicsguy1
          last edited by

          Thanks!

          1 Reply Last reply Reply Quote 0
          • C Offline
            CPhillips
            last edited by

            Yeah, lookAt also has Accel and Damp options.

            lookAt("sphere",100,2)

            Putting 0,0 is special and will make it as strong as possible. Probably too strong for most applications. The default is

            lookAt("sphere",10,10)

            lookAt("sphere",1,1)#<--this is very weak.

            1 Reply Last reply Reply Quote 0
            • C Offline
              CPhillips
              last edited by

              Here is an example with several different variations on lookAt


              LookAtExamples.skp

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Buy SketchPlus
              Buy SUbD
              Buy WrapR
              Buy eBook
              Buy Modelur
              Buy Vertex Tools
              Buy SketchCuisine
              Buy FormFonts

              Advertisement