[WIP] 3DS Physics Sandbox

Discussion in '3DS - Homebrew Development and Emulators' started by PieFace, Jul 29, 2016.

  1. PieFace
    OP

    PieFace Advanced Member

    Newcomer
    59
    31
    Aug 4, 2014
    United States
    3DS Physics Sandbox v0.3

    v0.3 Changelog

    v0.2 Changelog

    This is an application for playing around in an environment with simple physics
    Note: This is very work-in-progress and currently has limited features

    Features:
    • Manipulate multiple different sized squares with the stylus
    • Objects will bounce off of each other
    • The squares are affected by gravity, with walls and friction
    • Modifiable gravity, collision elasticity, and friction values
    • Collisions calculation uses momentum of squares
    • Take a screenshot
    • Control gravity by tilting 3ds (accelerometer)
    • Move camera with circle pad
    • Walls that squares will bounce off of
    • different squares and walls can be made using on screen ui
    Controls:
    • Tap and Drag square to move it
    • X - Reset entire world
    • B - bring selected square back to center of world
    • DPad Left and Right - Change modifiable value
    • DPad Up and Down - Increment current modifiable value
    • L and R - Change increment (multiply and divide by 10)
    • Circle Pad - move camera
    • Y - toggle gyroscope as gravity
    • Select - Save screenshot
    • Start - Exit
    Known Bugs:
    • If squares are traveling fast enough, they can clip through walls (more apparent in smaller squares)
    • Sometimes squares get "crushed" against vertical walls because of x gravity

    To Do:
    • Fix Banner Sound (Warning: sound may be irritable)
    • More than one objectDone
    • Different kinds of objects (like circles or custom shapes) - See Pipe01 Fork
    • Proper implementation of forces/momentum and vectors
    • Tension and ropes
    • Develop into physics library
    • 3D physics

    Screeshots
    Videos

    QR

    NOTE: Titledb won't let me update the link so it will be outdated. Use QR code or github to download fixed

    Downloads:
    Binaries: https://github.com/pieface-/3dsphysicssandbox/releases
    Source: https://github.com/pieface-/3dsphysicssandbox

    Pipe01 made a cool fork of v0.1 that includes 10 shapes of different varieties. They do not interact with each other, however.
    Download: https://www.dropbox.com/s/ackpisffvfzgwob/3dsphysicssandbox-fork.zip?dl=0
    Source: http://pastebin.com/kRBM2RDj

    I plan on working on this a lot in the near future so if anyone has any feature suggestions or wants to contribute otherwise feel free.

    Credits
    Smealum - creator of ctrulib and the homebrew menu
    xerpi - creator of sf2dlib
    Magical Sheep - Screenshots and video :)
    Pipe01 - Cool fork and bug fixes
     
    Last edited by PieFace, Aug 6, 2016


  2. SomeGamer

    SomeGamer Within Hyrule Castle

    Member
    5,729
    2,676
    Dec 19, 2014
    Hungary
    Noice! I love playing around with these kinds of homebrew! :P
     
    PieFace likes this.
  3. _D1360_

    _D1360_ Advanced Member

    Newcomer
    92
    64
    Oct 7, 2015
    Colombia
    I just added link to www.titledb.com for easy installation, it's linked to your git.

    Thanks for sharing!
     
    PieFace likes this.
  4. PieFace
    OP

    PieFace Advanced Member

    Newcomer
    59
    31
    Aug 4, 2014
    United States
    Thank you! :)
     
    _D1360_ likes this.
  5. SirBeethoven

    SirBeethoven 3.145.... something. E=mc2

    Member
    1,794
    547
    Nov 26, 2015
    United States
    Amazing! Could you add screenshots for future viewers too please!! Thanks SO SO SO MUCH! :)
     
    PieFace likes this.
  6. LiamTheHackermon

    LiamTheHackermon GBAtemp Regular

    Member
    130
    78
    Jul 22, 2016
    United States
    whoa so cool
     
    PieFace likes this.
  7. SirBeethoven

    SirBeethoven 3.145.... something. E=mc2

    Member
    1,794
    547
    Nov 26, 2015
    United States
    Heh, this is a ton of fun when I flick the cube and it goes up and down turbo fast!!
     
    PieFace likes this.
  8. Domukuro Wolfield

    Domukuro Wolfield GBAtemp Regular

    Member
    158
    24
    Feb 25, 2014
    Mexico
    Calera, Zacatecas, Mexico
    Screenshots anyone?
     
  9. SirBeethoven

    SirBeethoven 3.145.... something. E=mc2

    Member
    1,794
    547
    Nov 26, 2015
    United States
    For now, just imagine a cube that you can flick around and on the top screen, it shows that you can change the cubes velocity, Gravity, and more!!!
     
  10. Magical Sheep

    Magical Sheep The Super Stylish Black Cat

    Member
    248
    120
    Jan 22, 2016
    United States
    The Metaverse
    This is pretty cool. I think it would be nice if you added a button that reset all the values to a default, and if it's possible, have something that plays around with the gyroscope (I think that's what it is) in the 3DS.

    — Posts automatically merged - Please don't double post! —

    Excuse the doublepost, but here's a screenshot of it. http://imgur.com/a/WQtTi (Top and bottom screens)
     
    PieFace likes this.
  11. PieFace
    OP

    PieFace Advanced Member

    Newcomer
    59
    31
    Aug 4, 2014
    United States
    Thanks for the screenshots; I added them to the op. Also, you can press x to clear all values. I'll reword that in the controls
     
    Last edited by PieFace, Jul 29, 2016
    Magical Sheep likes this.
  12. Urbanshadow

    Urbanshadow GBAtemp Maniac

    Member
    1,288
    468
    Oct 16, 2015
    I like the simplicity of it! I'd love to see it using both screens for some cool stereoscopic effects but that might ruin the feel of directly controlling the world with the touch screen.
     
    PieFace likes this.
  13. Thunder Kai

    Thunder Kai #TeamRem

    Member
    1,343
    367
    Sep 4, 2015
    United States
    With Rem
    QR please?
     
  14. PieFace
    OP

    PieFace Advanced Member

    Newcomer
    59
    31
    Aug 4, 2014
    United States
    This could happen in the future if it becomes more of a library/engine.

    added to op
     
    Thunder Kai likes this.
  15. Magical Sheep

    Magical Sheep The Super Stylish Black Cat

    Member
    248
    120
    Jan 22, 2016
    United States
    The Metaverse
    Alright! I can't remember doing that because I just woke up. :P You're welcome for the screenshots though.
     
    PieFace likes this.
  16. TheVinAnator

    TheVinAnator GBATemp's Greatest Vin

    Member
    3,526
    2,486
    Jan 10, 2016
    Canada
    NO COFFEI!
    Awesome, may try soon! I love things like this :P
     
    PieFace likes this.
  17. Urbanshadow

    Urbanshadow GBAtemp Maniac

    Member
    1,288
    468
    Oct 16, 2015
    You can achieve pretty impressive things with stereoscopic 2d, but you may want to change libraries for 3d rendering and physics.
     
  18. kprovost7314

    kprovost7314 GBAtemp's Official Bara Master

    Member
    1,659
    841
    Dec 24, 2014
    United States
    In that bara manga ( ͡° ͜ʖ ͡°)
    Nice! Can't wait to try it out!
     
    PieFace likes this.
  19. KiiWii

    KiiWii GBAtemp Psycho!

    Member
    3,667
    1,219
    Nov 17, 2008
    United Kingdom
    Any videos please? I love physics based things like this :)
     
    PieFace and TheVinAnator like this.
  20. PieFace
    OP

    PieFace Advanced Member

    Newcomer
    59
    31
    Aug 4, 2014
    United States
    Oh for sure. This is staying 2d for the near future though.
    I am working on a small update right now so I can make a video when it is finished.
     
    Magical Sheep and KiiWii like this.