Forums

OverviewV-Play 1 SupportBugs after update to version 1.4 › Reply To: Bugs after update to version 1.4

OverviewV-Play 1 SupportBugs after update to version 1.4 › Reply To: Bugs after update to version 1.4
#5835

Alex
V-Play Team

Hi Gregor,

currently you have no access to this information while dragging the entity, since only the internal collider copy is active and its signal are not forwarded straight

We added 2 new signals to the EntityBaseDraggable for your use case, they will be available with the next daily build.

You can use them like this:

EntityBaseDraggable {
  // collider and stuff

  // these are the new signals of the EntityBaseDraggable
  // you have access to the colliding fixture via "other"
  onBeginContactWhileDragged: {
    var fixture = other;
    var body = other.parent;
    var component = other.parent.parent;
    var collidedEntity = component.owningEntity;
    var collidedEntityType = collidedEntity.entityType;
    console.log("onBeginContactWhileDragged: collided with entity " + collidedEntity)
  }

  onEndContactWhileDragged: {
    var fixture = other;
    var body = other.parent;
    var component = other.parent.parent;
    var collidedEntity = component.owningEntity;
    var collidedEntityType = collidedEntity.entityType;
    console.log("onEndContactWhileDragged: collided with entity " + collidedEntity)
  }
}

Cheers,
Alex

 

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