Forums

OverviewV-Play 2 Support (Qt 5) › PhysicsWorld

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #7992

    Salim

    Hi,

     

    I am using Qt 5.3.1 and V-Play 2.0.3.

    The following code cause the below error:

     

    import QtQuick 2.3
    import QtQuick.Window 2.1
    import QtQuick.Layouts 1.1
    import VPlay 2.0
    
    GameWindow {
        visible: true
        width: 360
        height: 360
    
    
        EntityManager {
            id: entityManager
            entityContainer: scene
        }
    
        Scene {
            id: scene
    
            PhysicsWorld {
                gravity.y: -9.81
                z: 10 // draw the debugDraw on top of the entities
    
                // these are performance settings to avoid boxes colliding too far together
                // set them as low as possible so it still looks good
                updatesPerSecondForPhysics: 60
                velocityIterations: 5
                positionIterations: 5
            }
    
            EntityBase {
                entityId: "box1"
                entityType: "box"
    
                Image {
                    source: "person25.svg"
                    width: 128
                    height: 128
                    antialiasing: true
                }
                BoxCollider {
                    anchors.fill: boxImage
                }
            }
        }
    }
    

     

     

     

    Type PhysicsWorld unavailable

    file:///home/salim/Qt/5.3/gcc_64/qml/VPlay/physics/PhysicsWorld.qml:6 World is not a type

     

    For your help please.

     

    Regards,

    Salim

    #7993

    Alex
    V-Play Team

    Hi Salim,

    we just discovered a problem in our V-Play 2.0 libs for 64Bit Linux, they are not distributed correctly with the latest update.

    We will fix this early next week, then you can update the new libs with the Maintenance Tool. I will notify you in this thread as soon as they are ready!

    Sorry for the inconvenience and have a nice weekend.

    Cheers,
    Alex

    #8031

    Salim

    Hi Alex,

     

    Any update on the above issue ?

     

    Regards,

    Salim

    #8032

    Alex
    V-Play Team

    Hi Salim,

    sorry, i forgot to notify you :(

    We released version 2.0.4 on Wednesday, please update via the Qt5 Maintenance Tool and try if it fixes your problem.

    Cheers,
    Alex

    #8033

    Salim

    Hi Alex,

    Unfortunately, the error still appears after the update.

    I did clean the project, qmake, rebuild and re-compile the code without success.

    #8037

    Salim

    Hi Alex,

    Is this issue affecting all 64-bit Linux distributions?

    I am using Ubuntu 14.04 64-bit

    Regards,

    Salim

    #8038

    Alex
    V-Play Team

    Hi Salim,

    we just checked the issue on a fresh Ubuntu installation and we found a problem in Qt Creator (“Could not resolve prototype …”) with PhysicsWorld. Despite the code completion error your code however runs fine. Do you get the error while running the game or are you referring to the problem within the editor?

    Thanks,

    Alex

    #8039

    Salim
    #8040

    Alex
    V-Play Team

    Thanks for your answer, is this actually the error you’re getting in your custom project or from the snippet above (with the fixed “anchors.fill: boxImage” line 😉 )?

    Thanks,

    Alex

Viewing 9 posts - 1 through 9 (of 9 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