Browse Search Popular Register Upload Rules User list Login:
Search:
SCENE DEBUGGING TOOL

Image:
screenshot of the scene

Author: Xray

Group: Default

Filesize: 64.98 kB

Date added: 2013-07-13

Rating: 5

Downloads: 560

Views: 521

Comments: 10

Ratings: 1

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

This is useful only to those who use Thyme scripting in their scenes.

Many times in the past, I would struggle with why my onCollides were not working. I thought that it would be nice to have a visual representation of the collisions so that I would know if two geometries were actually colliding with each other. I since found a console command that does exactly that! The command is app.drawcollisions = true (or false). Well, as you can imagine, it was a pain in the butt to have to enter the console and type that command each time I wanted to turn the function on or off. So, I made THIS scene which allows a user to very easily enable or disable th visual collision events. You simply open this scene, click the button to enable it, then close the scene and open the scene that you want to debug. The function remains on or off even when you close the program and then reopen it.

In addition to viewing collisions, I added two other buttons that may be helpful to some. One allows you to see the vertices of polygons, and the other allows you to see the exact center of most geometries. The center is where its position (pos X and Y) is referenced. When you enable the visual center, a tiny dot shows up in the exact center of the geometry. These other two functions are not as useful as viewing collisions, but hopefully someone will be able to make use of them.

Above the buttons are a couple of sample objects that show the results of enabling and disabling the three functions.'



EDIT: I made a change that forces the sim to start automatically as soon as you load the scene (as before), but now you can stop and start the sim whenever you wish. I did this because of s_nonnan's comment that he did not like the fact that the scene was always running and you were not able to stop it with the normal Start/Stop button. Good suggestion, s_noonan!
Last edited at 2013/07/14 06:49:25 by Xray
Please log in to rate this scene
edit
Similar scenes
Title: THYME SCRIPT DEBUGGING TOOL AND DEMONSTRATION
Rating: 5.5
Filesize: 61.14 kB
Downloads: 738
Comments: 3
Ratings: 2
Date added: 2012/11/13 02:33:51
Made with: Algodoo v2.0.2
Rating: rated 5.5
download
Title: Scene Debugging Tools
Rating: 5.625
Filesize: 68.36 kB
Downloads: 2145
Comments: 4
Ratings: 2
Date added: 2021/01/30 05:10:44
Made with: Algodoo v2.1.0
Rating: rated 5.6
download
Title: Numberblocks brush tool challenge 1-5
Rating: 5
Filesize: 81.4 kB
Downloads: 2396
Comments: 1
Ratings: 1
Date added: 2021/01/08 11:15:40
Made with: Algodoo v2.1.3
Rating: rated 5
download
Title: Ninja Tool Test
Rating: 5
Filesize: 144.19 kB
Downloads: 1004
Comments: 3
Ratings: 1
Date added: 2018/06/21 16:07:37
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: scanner
Rating: 5
Filesize: 103.34 kB
Downloads: 394
Comments: 0
Ratings: 1
Date added: 2020/08/28 11:45:08
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Manual Sim Controller
Rating: 6
Filesize: 104.41 kB
Downloads: 4105
Comments: 14
Ratings: 3
Date added: 2022/05/11 22:43:28
Made with: Algodoo v2.1.0
Rating: rated 6
download
Responses to this scene
show list
Title: Play With Water
Rating: 6.8182
Filesize: 182.08 kB
Downloads: 1867
Comments: 13
Ratings: 5
Date added: 2013/07/16 09:32:10
Made with: Algodoo v2.1.0
Rating: rated 6.8
download
Why "sim.running = true" in the update event?
Just for convenience so that the scene is running when loaded. Do you see a problem with doing that?
Yes. I might like to start and stop the simulation, but you have taken that choice away from me.
Seriously? I have taken nothing away from you that you cannot take back with just a few clicks of your mouse.
Am I missing something? With that code in place I can't stop or restart the scene.
Seriously? JUST DELETE THE CODE! :rolleyes:

Thyme script can be deleted, added, or modified while the sim is running. Some situations are a little tricky but in most situations it can easily be done. Once you delete the sim.running = true script, then the RUN/STOP sim button (or the SpaceBar) will work as normal.
Last edited at 2013/07/14 05:47:48 by Xray
very useful!
faytree - Thanks! I may add more buttons to it if I can find other console commands that look useful.
Wow draw verticies hmmmm!.. good script ! maybe it can found its surfaces. :lol:
Nice! I have all of these pre-set to Function keys, but seeing clickable buttons with this function is really cool!.
Last edited at 2013/07/16 15:22:40 by FruitMonger