Author Topic: Physics Sandbox  (Read 6402 times)

0 Members and 1 Guest are viewing this topic.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Physics Sandbox
« on: October 16, 2010, 05:20:44 am »
Alright i have finally finished my sandbox to where it is workable and very very fun to play with :D It has a handy dandy interface that takes up a crapload of space, but is very shiny and fun :) The screenshot runs a bit fast unfortunately, especially the simulation parts, but i cant seem to fix that.  Here are the controls for the sandbox:

Arrow Keys: Move cursor
2nd: Press and Hold in empty space to create a box
       Press on a box to highlight it
Alpha: Press and Drag to highlight an area
Mode: Start Physics Simulation
Del: Delete Selected Boxes
Clear: Exit

And then there are menu functions.  There are 2 menu's, main and selected.  The selected menu only appears when you have one or more object selected.  The menu is activated by pressing one of the F1-F5 keys, and then the menu selection is chosen using the F1-F5 keys

Main Menu:
All: Highlights all objects
Clr: Erases all objects
Glob: Set global forces in the world
Save: Save the current state of the world
Load: Load the most recent saved state

Highlight Menu:
Copy: Create a copy of the current selection onto the cursor.  Press and hold the copy button to get a preview shadow of your copy selection and move your cursor to place.
Push: Press and hold to create a force onto all selected objects.  Release Push button to apply force and enter simulation
Move: Press and hold to move current objects
Game: You lost it
Edit: Edit the Mass objects as a group (1-24) and set whether or not the highlighted objects are static or not

Offline JosJuice

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1344
  • Rating: +66/-14
    • View Profile
Physics Sandbox
« Reply #1 on: October 16, 2010, 05:24:29 am »
Awesome. I'll try downloading this now... But maybe TI-Connect won't let me send this to my calc. It's been screwing around with me a lot.

Offline Jonius7

  • python! Lua!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1918
  • Rating: +82/-18
  • Still bringing new dimensions to the TI-nspire...
    • View Profile
    • TI Stadium
Physics Sandbox
« Reply #2 on: October 16, 2010, 05:31:18 am »
wow, ill try it on my emulator...

This is great!!! really good physics!
« Last Edit: October 16, 2010, 05:55:13 am by jhgenius01 »
Programmed some CASIO Basic in the past
DJ Omnimaga Music Discographist ;)
DJ Omnimaga Discography
My Own Music!
My Released Projects (Updated 2015/05/08)
TI-nspire BASIC
TI-nspire Hold 'em
Health Bar
Scissors Paper Rock
TI-nspire Lua
Numstrat
TI-nspire Hold 'em Lua
Transport Chooser
Secret Project (at v0.08.2 - 2015/05/08)
Spoiler For Extra To-Be-Sorted Clutter:

Spoiler For Relegated Projects:
TI-nspire BASIC
Battle of 16s (stalled) | sTIck RPG (stalled) | Monopoly (stalled) | Cosmic Legions (stalled)
Axe Parser
Doodle God (stalled while I go and learn some Axe)

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Physics Sandbox
« Reply #3 on: October 16, 2010, 06:08:55 am »
Thanks guys :) I've been working hard on this for the past couple days ^^

Also note that there is a bug that limits your objects to under 24, so don't go over that unless you want a RAM clear.  In the bug fixed version you will be able to go up to 47

Offline matthias1992

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 408
  • Rating: +33/-5
    • View Profile
Physics Sandbox
« Reply #4 on: October 16, 2010, 08:08:04 am »
Extremely cool and fun to play with, one feature for this that i would like to see added is a 'snap to grid', either for the cursor itself or for the created objects (I think the first one is far easier). Aside from that this is pure awesomeness!
MASM xxxxxxxxxx aborted | SADce ====:::::: 40% -Halted until further notice| XAOS =====::::: 50% -Units done| SKYBOX2D engine ========== 100% -Pre-alpha done. Need to  document it and extend |

~Those who dream by day are cognizant of much more than those who dream by night only. -Sir Edgar Allen Poe-

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Physics Sandbox
« Reply #5 on: October 16, 2010, 02:07:45 pm »
Hmmm snap to objects i can see, but what would snap to cursor do? And yeah, snap to objects would be really complicated x.x i might just do snap to boundaries, but that might get annoying, i usually turn snap off in all the applications i have.

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Physics Sandbox
« Reply #6 on: October 16, 2010, 05:20:07 pm »
This looks really cool :) Can't wait to try this later ;D
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline matthias1992

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 408
  • Rating: +33/-5
    • View Profile
Re: Physics Sandbox
« Reply #7 on: October 16, 2010, 05:45:48 pm »
Hmmm snap to objects i can see, but what would snap to cursor do? And yeah, snap to objects would be really complicated x.x i might just do snap to boundaries, but that might get annoying, i usually turn snap off in all the applications i have.
Not 'snap to cursor' but let the cursor move a fixed amount of pixels, so every time I press right the cursor moves 4pxls to the right. Now it is very hard to make two identical boxes without copying because the cursor is very sensitive...
Just like the cursor in SAD, or like any cursor in basic just make the cursor capable of moving by a fixed constant every keypress. Also it seems you can only have one static object? Or did i do something wrong cuz whenever I selected a bunch of boxes and make em static only the first one I selected becomes truly static in the simulation...
MASM xxxxxxxxxx aborted | SADce ====:::::: 40% -Halted until further notice| XAOS =====::::: 50% -Units done| SKYBOX2D engine ========== 100% -Pre-alpha done. Need to  document it and extend |

~Those who dream by day are cognizant of much more than those who dream by night only. -Sir Edgar Allen Poe-

SirCmpwn

  • Guest
Re: Physics Sandbox
« Reply #8 on: October 16, 2010, 05:48:15 pm »
Nice!  Very fast, too.  The Source Engine is a lot slower because of the complexity of map collisions.  This one checks with the edges of the screen - a rectangle.  The Source Engine has to check the sides of an object that could be any shape :P

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Physics Sandbox
« Reply #9 on: October 16, 2010, 06:45:24 pm »
Download!

I really wish I didn't have several papers to write so I could play around with this.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline shmibs

  • しらす丼
  • Administrator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2132
  • Rating: +281/-3
  • try to be ok, ok?
    • View Profile
    • shmibbles.me
Re: Physics Sandbox
« Reply #10 on: October 16, 2010, 07:02:59 pm »
Not 'snap to cursor' but let the cursor move a fixed amount of pixels, so every time I press right the cursor moves 4pxls to the right.
user defined cursor jump distances should be easy to implement and very useful.

this is genius, and you are genius, and after studying the source(assuming you give it) i (hopefully) will be genius as well. it just needs Phun's gearify option and all will be well with the world :P.
thanks, builder! you're the best!

Offline Madskillz

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 488
  • Rating: +32/-2
    • View Profile
Re: Physics Sandbox
« Reply #11 on: October 16, 2010, 07:35:03 pm »
Wow impressive all around. Nice work builder!

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Physics Sandbox
« Reply #12 on: October 16, 2010, 07:37:38 pm »
Not 'snap to cursor' but let the cursor move a fixed amount of pixels, so every time I press right the cursor moves 4pxls to the right. Now it is very hard to make two identical boxes without copying because the cursor is very sensitive...
Just like the cursor in SAD, or like any cursor in basic just make the cursor capable of moving by a fixed constant every keypress.

Sounds like a good idea :D What i'm going to do is have a "snap" key (probably XTON or something) that will change the cursor look and change it into snap mode.

Also it seems you can only have one static object? Or did i do something wrong cuz whenever I selected a bunch of boxes and make em static only the first one I selected becomes truly static in the simulation...

Hmmmm i just tried it an it worked fine?

Nice!  Very fast, too.  The Source Engine is a lot slower because of the complexity of map collisions.  This one checks with the edges of the screen - a rectangle.  The Source Engine has to check the sides of an object that could be any shape :P

Thanks! :D Speed was definetaly my main goal in Zedd, and according to my calculations, map detection should hardly slow it down at all ^^ Btw did you ever get the Half Life engine demo reuploaded?

this is genius, and you are genius, and after studying the source(assuming you give it) i (hopefully) will be genius as well. it just needs Phun's gearify option and all will be well with the world :P.
thanks, builder! you're the best!

Thanks :] And i most definitely will be giving the source once Zedd and the Sandbox are finished :) Whats the point of a library if i dont give the source ^^ Its for everybody to use and learn from :D

Wow impressive all around. Nice work builder!

Thanks :) Im glad everybody is liking it!

SirCmpwn

  • Guest
Re: Physics Sandbox
« Reply #13 on: October 16, 2010, 07:41:15 pm »
Woops, I'll re-upload.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Physics Sandbox
« Reply #14 on: October 17, 2010, 04:23:01 am »
Wow that looks great!