Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to call my physics simulation timestep function?
Forum Updated to NodeBB v4.3 + New Features

How to call my physics simulation timestep function?

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 843 Views 1 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.
  • J Offline
    J Offline
    johannesMi
    wrote on last edited by
    #1

    Hello,

    currently I'm working on embedding the rigid-body physics engine ODE and OpenGl3 into Qt.

    I want my object hierarchy to look like the following
    QApplication
    -GLWidget (draw scene, user input)
    -ODEengine (start/stop, timestep)
    -Scene
    --Box Object
    --Sphere Object

    I am not sure how to call the timestep function of the engine. I am aiming for 100 FPS refresh rate and a timestep size of 0.01, so there is roughly on physic step in each frame.

    Should I implement it with 2 independent timers, one for GL-Rendering and the other for the Physics?
    Is there any standard approach for this?

    I am looking forward for your answers.

    Johannes

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved