Forums

OverviewV-Play 1 SupportBoxCollider › Reply To: BoxCollider

OverviewV-Play 1 SupportBoxCollider › Reply To: BoxCollider
#4672

alexandra.grohmann

We have now set the drag target to a temporary item and calculated the position to be outside but the stones are still flickering if they collide.

Our Code in one standing stone looks like:

        fixture.onBeginContact: {
            mouse.drag.target = temp

            var collidedColliderComponent  = other.parent.parent
            var collidedEntity = collidedColliderComponent.parent

            if(collidedEntity.y > entity.y) {
                entity.y = collidedEntity.y - entity.heigth - 1
            } else {
                entity.y = collidedEntity.y + collidedEntity.heigth + 1
            }
        }

 

Do we need another collider component or should this work?

 

Greeting,

Alexandra

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