Homebrew [WIP] 3DS Physics Sandbox

PieFace

Well-Known Member
OP
Newcomer
Joined
Aug 4, 2014
Messages
59
Trophies
0
XP
157
Country
United States
3DS Physics Sandbox v0.3

  • Added support for up to 32 squares
  • Added walls, immobile objects(lines) that objects bounce off of (up to 32)
  • Removed square bouncing on edges of screen (by default replaced by walls in the same locations)
  • Added camera, use circle pad to move view around
  • Updated UI:
    • Now contains two columns of information, global variables and object specific variables
    • Change the mod_val scope to switch between these two
    • All data of squares and walls can be modified (position, size, etc)
    • Use obj_type to change between squares and walls
    • Use curr_view to change which object you are looking at
    • Use coord to change the objects position
    • Use vel.x/y to change the square's velocity
    • Use direction to change wall's direction
    • Use length to change the objects size
    • NOTE: the program stops searching through the array when it finds the first inactive object. Add new objects in order
  • Press X to reset the entire world to default
  • Press B to bring the currently selected square to the center of the world
  • Started modularization of code
  • Collision now takes momentum into account (more realistic collisions)

  • Press Y to toggle using gyroscope as gravity , or allow the square to follow tilt of 3ds
  • Press select to take a screenshot (needs optimization)
  • Friction now takes into account appropriate gravity, resulting in mostly increased friction at the default value
  • Fixed precision bug with increment

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

dBM0cyH.png

CzcwZgK.png
v0.3

v0.1


k0Jgam4.png

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,
D

Deleted User

Guest
Amazing! Could you add screenshots for future viewers too please!! Thanks SO SO SO MUCH! :)
 
  • Like
Reactions: PieFace

Magical Sheep

The Super Stylish Cat
Member
Joined
Jan 22, 2016
Messages
306
Trophies
0
Age
25
Location
The Metaverse
XP
801
Country
United States
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.

--------------------- MERGED ---------------------------

Screenshots anyone?
Excuse the doublepost, but here's a screenshot of it. http://imgur.com/a/WQtTi (Top and bottom screens)
 
  • Like
Reactions: PieFace

PieFace

Well-Known Member
OP
Newcomer
Joined
Aug 4, 2014
Messages
59
Trophies
0
XP
157
Country
United States
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.

--------------------- MERGED ---------------------------


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

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,
  • Like
Reactions: Magical Sheep

Urbanshadow

Well-Known Member
Member
Joined
Oct 16, 2015
Messages
1,574
Trophies
0
Age
32
XP
1,692
Country
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.
 
  • Like
Reactions: PieFace

PieFace

Well-Known Member
OP
Newcomer
Joined
Aug 4, 2014
Messages
59
Trophies
0
XP
157
Country
United States
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.
This could happen in the future if it becomes more of a library/engine.

QR please?
added to op
 
  • Like
Reactions: Thunder Kai

PieFace

Well-Known Member
OP
Newcomer
Joined
Aug 4, 2014
Messages
59
Trophies
0
XP
157
Country
United States
You can achieve pretty impressive things with stereoscopic 2d, but you may want to change libraries for 3d rendering and physics.
Oh for sure. This is staying 2d for the near future though.
Any videos please? I love physics based things like this :)
I am working on a small update right now so I can make a video when it is finished.
 

Popular threads in this forum

General chit-chat
Help Users
  • Bunjolio @ Bunjolio:
    im sorry i just dont understand it,
  • Bunjolio @ Bunjolio:
    im sorry
  • redfire12 @ redfire12:
    humour is subjective.. if you dont see the humour, we have to at least recognise the attempted pretext of it within the social commentary its giving...
  • redfire12 @ redfire12:
    wow, that sounded less pretentious in my head hahaha
  • Bunjolio @ Bunjolio:
    i mean its something about the army and the lgbtq idrk
  • Vetusomaru @ Vetusomaru:
    That Transgender Transformers parody later became canon
  • NinStar @ NinStar:
    lgbtqiapnhdr++
  • trepp0 @ trepp0:
    Bunjolio be no living on this website fr
    +1
  • Bunjolio @ Bunjolio:
    nuh uh
  • trepp0 @ trepp0:
    dawg, every time i have logged on, you have been active.
  • Bunjolio @ Bunjolio:
    yeah cuz im bored
  • K3N1 @ K3N1:
    Alot of us do tbh we just stop giving a shit about what others that don't know us think
  • redfire12 @ redfire12:
    nothing wrong with living "on site" lol, most folk do it on faceyB and insta
  • Absolute_Vile @ Absolute_Vile:
    Back 20 years ago, it was common and normal to spent a lot of time in forums, there was nothing more
  • K3N1 @ K3N1:
    Depends what you get out of it, if it's actual socializing, learning about people, trying to get along it can change your life indefinitely
    +1
  • K3N1 @ K3N1:
    Most users here have chatted so long they know the difference when they're just being a dipshit or actively struggling with something life brings
    +1
  • JeremyRobiyt @ JeremyRobiyt:
    does someone wanna join my new group? the link is https://gbatemp.net/forums/wiimodders.693/
  • Sonic Angel Knight @ Sonic Angel Knight:
    * peeks in chat * :ninja:
  • Bunjolio @ Bunjolio:
    anyone` know how to do that silly invisible avatar thing on pokemone on 3ds
  • Bunjolio @ Bunjolio:
    and is there any cheats for editing ur secret base customization item inventory fr pokemon omega ruby
  • Bunjolio @ Bunjolio:
    like the decortion for super ecret base
  • SylverReZ @ SylverReZ:
    Erect base lol
  • Bunjolio @ Bunjolio:
    lmao super erect base
    Bunjolio @ Bunjolio: lmao super erect base