Forums

OverviewV-Play 1 Support › BoxCollider rotation issue

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6143

    gshrman

    Could somebody tell me why the following code places the BoxCollider at a different location than the Rectangle?

    EntityBase {

    Rectangle {
    id: s1
    width: 100
    height: 5
    x: 100
    y: 0
    rotation: 90
    transformOrigin: Item.TopLeft;
    }
    BoxCollider {
    id: bc1
    width: 100
    height: 5
    x: 100
    y: 0
    rotation: 90
    transformOrigin: Item.TopLeft;
    bodyType: Body.Static
    }
    }

    Thanks!

    #6144

    Martin

    Probably is the same issue as this.

    Best, Martin

    #6150

    Alex
    V-Play Team

    Yes, Martin is right, the problem is that Box2D isn’t supporting the transformOrigin property.

    Can you do it just by changing the position of the rectangle and the collider inside the entity? You could also send me a screenshot (support@v-play.net) of how it should look and i can try to help you.

    Cheers,
    Alex

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