• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Look At Function Problem

Scheduled Pinned Locked Moved SketchyPhysics
5 Posts 3 Posters 580 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 16 Apr 2009, 19:08

    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 16 Apr 2009, 19:42

      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 16 Apr 2009, 19:49

        Thanks!

        1 Reply Last reply Reply Quote 0
        • C Offline
          CPhillips
          last edited by 16 Apr 2009, 20:56

          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 17 Apr 2009, 02:53

            Here is an example with several different variations on lookAt


            LookAtExamples.skp

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

            Advertisement