sketchucation logo sketchucation
    • Login
    ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

    Frame Rate, Gravity, and World Scale

    Scheduled Pinned Locked Moved SketchyPhysics
    2 Posts 2 Posters 1.4k Views
    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.
    • M Offline
      mptak
      last edited by

      Has anyone seen or found a good description of just how the physics setting variables work. Just how would I set them if I in fact wanted to mimic as closely as possible the "real world" at either 15 or 29.4 frames per second. I am quite happy to tweak but would like to build on the work of others as I try and work a Vulcan mind meld between Algodoo....Sketchy Physics...and dare I say it....the physical world. Any insights greatly appreciated.

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

        I am afraid that isn't right. Think of it this way. 1 is slow mo, 3 is normal speed and 6+ is fast forward.

        The framerate is the number of physics steps that happen before Sketchup displays the frame. A physics step is 1/60 of a second. The default is actually 3 and with it goes like this

        Advance physics simulation by 1/60 sec.
        Advance physics simulation by 1/60 sec.
        Advance physics simulation by 1/60 sec.
        Update Sketchup object positions.
        Advance physics simulation by 1/60 sec.
        Advance physics simulation by 1/60 sec.
        Advance physics simulation by 1/60 sec.
        Update Sketchup object positions.
        etc.

        if the framerate is 1

        Advance physics simulation by 1/60 sec.
        Update Sketchup object positions.
        Advance physics simulation by 1/60 sec.
        Update Sketchup object positions.
        Advance physics simulation by 1/60 sec.
        Update Sketchup object positions.
        Advance physics simulation by 1/60 sec.
        Update Sketchup object positions.
        etc.

        Here is where it gets a bit tricky. By far the slowest part of this cycle is the Update Sketchup Object part. That means that the lower the framerate the slower the model appears to run even tho its actually running at the same speed as if you were using 3. With 3 you will just get more simulation time in the same number of real time seconds.

        Hope that helps.
        Chris

        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