Forums

OverviewV-Play 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
    V-Play 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.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support