User Tag List

Results 1 to 4 of 4

Thread: [Phizix] Body position

  1. #1
    Clicker Multimedia Fusion 2

    Join Date
    Jul 2006
    Location
    Near Nantes (Brittany)
    Posts
    241
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Phizix] Body position

    Hello !
    I've got a little question. I know it's strange to say this (because a body has no shape) but do X and Y positions of a body mean the upper left "corner" of the body ? I think so. Just wanted to be sure.

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Nifflas's Avatar
    Join Date
    Jul 2006
    Posts
    2,613
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Phizix] Body position

    The X and Y position of the body is it's center of mass. When you create a shape, you specify it's position as an offset to the position of the body.

    Logically, if you create a body containing a single rectangle, and configure the rectangle offset so that the body position is at the top-left of that rectangle, things are gonna look terribly weird as soon as that rectangle starts to rotate.

  3. #3
    Clicker Multimedia Fusion 2

    Join Date
    Jul 2006
    Location
    Near Nantes (Brittany)
    Posts
    241
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Phizix] Body position

    Thanks, Nifflas. So let's say I create an active object and I center its hotspot. Then let's say I create a body with a position at X(active object) and Y(active object). Then let's say I create a rectangle shape with offset 0 for X and Y. Everything should be right ?

  4. #4
    No Products Registered

    Join Date
    Jun 2006
    Posts
    324
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Phizix] Body position

    Sounds good yeah.

Similar Threads

  1. Phizix for Iphone (box2d and phizix)
    By iamjot in forum Extension Development
    Replies: 8
    Last Post: 6th May 2011, 08:41 AM
  2. Phizix - dragging the body help
    By Cronn in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 24th September 2009, 08:06 AM
  3. Phizix: Multiple Lines in Body
    By Jaffob in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 12th November 2008, 09:21 AM
  4. Phizix- Anyway to get a "body" to collide with....
    By xhedgehogx in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 1st February 2008, 06:11 PM
  5. [Phizix] Test if a body is not moving
    By Surmulot in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 30th January 2008, 06:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •