Physics and Origin

0 favourites
  • 3 posts
From the Asset Store
Simple yet very life-like rag doll made with Physics!
  • Hey guys,

    I'm playing around with the physics. I want to dynamically create some scenery, on start of layout.

    I have a rectangle sprite called "ground", I placed its "Origin" in the top left corner. I want to resize this ground sprite so that it covers the lower part of the screen.

    But what I found is that when I add the Physics behavior, the origin seems not to be taken into account when placing objects at X/Y coordinates.

    Is this the expected behavior? (I tried to find references on this site, but could not).

    For exemplification here's a simple capx with the minimum to explain this.

    I create 2 sprites dynamically, GroundWithPhysics and GroundWithoutPhysics. They have the same origin (top left corner), but they get placed differently on the X axis (perhaps on the Y axis too).

    Is this expected? If yes, why?

    Thanks in advance.

    Edit: Forgot the capx link: mediafire.com

  • Sounds like it might be a bug, moving to bugs forum to check out later.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thanks. Looking forward to the fix then :)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)