Forums

OverviewV-Play 2 Support (Qt 5)Troubleshooting BoxCollider collisions › Reply To: Troubleshooting BoxCollider collisions

OverviewV-Play 2 Support (Qt 5)Troubleshooting BoxCollider collisions › Reply To: Troubleshooting BoxCollider collisions
#12609

Lorenz

Hi Kevin,

As documented here, the entityid is generated by the EntityManager if you don’t set it explicitely. That explains the “player_0” id :)

Using the entityid to distinguish between objects you are colliding with is perfectly fine as you proposed. However, I would recommend setting an explicit entityid!

Alternatively, you can also use the entityType property.

I hope I was able to clear things up a little. Feel free to ask if you have more questions :)
Cheers,

Lorenz from V-Play

 

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