Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 2 Support (Qt 5) › Projectile dynamics

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9817

    Phil

    Hi. I have a projectile in my game. The mass and initial impulse of my projectile are to be varied. I want to make sure the projectile does not leave the top of the screen (by using the suvat equations). If my game window is 320 x 480 pixels, what is the conversion to metres? Is it uniform across devices or does it depend on DPI? Also, are the units of gravity (set in PhysicsWorld) metres / second? Thanks, Phil

    #9823

    Alex
    Felgo Team

    Hi Phil,

    we are using Box2D for our physics, so everything regarding units can be taken from its documentation and forums. The calculations only depend on the logical size of scene (most likely 320 x 480 pixels in your case) so DPI do not matter here.

    Cheers,
    Alex

Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded