User Tag List

Page 2 of 4 FirstFirst 1 2 3 4 LastLast
Results 11 to 20 of 33

Thread: [RC] Box2D

  1. #11
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    Wow, great happygreenfrog! I appreciate it, thanks

  2. #12
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    happygreenfrog's Avatar
    Join Date
    May 2011
    Location
    I.L.T.D.O.I.R (I.L.T.D.O.I.R's Location: The Dimension Of Infinite Recursion)
    Posts
    4,307
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    *Works on it some more*

  3. #13
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    happygreenfrog's Avatar
    Join Date
    May 2011
    Location
    I.L.T.D.O.I.R (I.L.T.D.O.I.R's Location: The Dimension Of Infinite Recursion)
    Posts
    4,307
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Documentation/Example

    Okay, sorry about the delay! The second section is done now, so I have a WIP version available, for those who can't wait. It has a example (which is very close to what you make in the second section), and the documentation (which also applies to the EXE version in the coding part of it). If you notice any errors in the tutorial (grammatical or coding), please let me know so I can fix it in the next version.
    Attached files Attached files

  4. #14
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    ...I just ALT+F4'd the browser when I was done with my post. I'll try to write it again in short form:

    Thanks for your documentation/examples! I appreciate the effort!

    I'll explain some things:
    The boundary properties actually have been removed from new Box2D library versions, in Flash they don't do anythign. Pos & Vel iterations pretty much what they do, how many iterations are used to process the body movement etc.
    Timestep is a coefficient for how much time is processed each step. Should usually be set to 1/FPS, e.g. 0.02 for 50 FPS. Also, custom mass works in Flash now. There shouldn't be any weird results. I think.
    Link destruction = If an object is deleted, so is its body and vice versa.

    Anyway, thanks a lot for your help!

  5. #15
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    happygreenfrog's Avatar
    Join Date
    May 2011
    Location
    I.L.T.D.O.I.R (I.L.T.D.O.I.R's Location: The Dimension Of Infinite Recursion)
    Posts
    4,307
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Okay, good to know. I'll revise my documentation based on that info. I'll put it in a new post here, not the old one, since I can't edit the post with the documentation.

  6. #16
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    happygreenfrog's Avatar
    Join Date
    May 2011
    Location
    I.L.T.D.O.I.R (I.L.T.D.O.I.R's Location: The Dimension Of Infinite Recursion)
    Posts
    4,307
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Now I just need to know what "Unit scale" is...

  7. #17
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    happygreenfrog's Avatar
    Join Date
    May 2011
    Location
    I.L.T.D.O.I.R (I.L.T.D.O.I.R's Location: The Dimension Of Infinite Recursion)
    Posts
    4,307
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    I have a new revision made, but it doesn't have info on "Unit scale". The example remains unchanged, but is still included for those who don't have the previous version.
    Attached files Attached files

  8. #18
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    Thanks for your effort Lookin good.
    Oh right. The unit scale is basically a coefficient between body (box2d) and object (mmf) coordinates. The default unit scale of 32 basically means that if you create an object at 64, 64, it will internally be created at 2, 2 (since 64/32 is 2). This kind of affects the way the physics are processed. All kinds of length units are divided by this unit length internally. Expressions like 'body X' would still return 64, since they internally multiply by 32 again. This is kinda useful if you want to use meter units, for example. With a unit scale of 32, a 32px object is exactly one meter tall. That means if you use 9.81 as Y gravity, you're accurately simulating earth gravity.

  9. #19
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    happygreenfrog's Avatar
    Join Date
    May 2011
    Location
    I.L.T.D.O.I.R (I.L.T.D.O.I.R's Location: The Dimension Of Infinite Recursion)
    Posts
    4,307
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Okay! I guess it will need it's own sub-section in my documentation then, huh? It's kinda hard to make a short version of that in such a small space, so it just says "(Complicated, will be explained in a later section...)" I tried, and I couldn't even fit the last two sentences of your description of Unit Scale in it without it showing up on a new line. I can't have it so that it would be on a new line, because that would bump everything else down, so that's why I need to keep it short when editing existing parts of the documentation. Anyway, the updated version is attached.
    Attached files Attached files

  10. #20
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by happygreenfrog View Post
    Okay! I guess it will need it's own sub-section in my documentation then, huh? It's kinda hard to make a short version of that in such a small space, so it just says "(Complicated, will be explained in a later section...)" I tried, and I couldn't even fit the last two sentences of your description of Unit Scale in it without it showing up on a new line. I can't have it so that it would be on a new line, because that would bump everything else down, so that's why I need to keep it short when editing existing parts of the documentation. Anyway, the updated version is attached.
    This is really nice for beginner Box2D users. Will there be more advanced documentation in future?

Page 2 of 4 FirstFirst 1 2 3 4 LastLast

Similar Threads

  1. How to do this? :D Box2D?
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 19th September 2012, 08:52 AM
  2. Box2D help
    By Pixzel in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 30th June 2012, 05:38 AM
  3. Box2D
    By KLiK-iT in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 9th January 2012, 03:29 PM
  4. Box2D?
    By KLiK-iT in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 1st January 2012, 03:00 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
  •