Forums

OverviewV-Play 2 Support (Qt 5)Problems with colliding objects and a question about debugDraw › Reply To: Problems with colliding objects and a question about debugDraw

OverviewV-Play 2 Support (Qt 5)Problems with colliding objects and a question about debugDraw › Reply To: Problems with colliding objects and a question about debugDraw
#9991

Günther
V-Play Team

Hi Ben,

Normally, there shouldn’t be any problem with using SpriteSequenceVPlay.

As for the error messages: I believe this occurs because the collider expects to be a child within an EntityBase component. Do you maybe use the collider directly within SpriteSequence?

SpriteSequenceVPlay {
  id: obstacleSequence
  // ...
  BoxCollider {
    // leads to error
  }
}

 

EntityBase {
  id: obstacleEntity

  SpriteSequenceVPlay {
    // ...
  }

  BoxCollider {
    // no errors
  }
}

 

This should at least clear up the error messages… Sadly, I cannot directly reproduce your error on my side (I always see the purple rectangle in DebugDraw and collision detection works fine). Did you change anything else in the code?

 

Best,

GT

 

  • This reply was modified 3 years ago by  GT.

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