BoxCAD - flash editor... .. and hours of endless fun

Quote:
Restore Previous Edits / State Snapshot
Well, then I simply tend to mess things up. I've tried several times to understand the difference between "State Restore" and "Restore Previous Edits" and failed. While I know what they are supposed to do, what they really did didn't quite match my expectations. Weird feeling. On the other hand I'd prefer the automatic snapshot restore when ending the simulation for ease of use. Pressing SPACE over and over is the Play/Pause toggle... another button (or ESC key?) right next to "Play" button would STOP the simulation and resetting to the last saved snapshot. That's just a little more convenient I guess / hope / assume...


State Restore restores the scene as it was when you clicked state snapshot. Restore previous edits restores the snapshot automatically taken when "play" starts. Maybe I should call Restore previous edits "Restore Auto-Snapshot" or something. Amazingly, I often end up using inadequate names because there simply isn't room on the buttons! Guess I need to start rethinking the gui overall huh?

I do like your idea of a "stop play" that automatically reverts. There almost need to be two play modes - an "edit with physics" and a "view physics." Honestly, the easiest way to work (on organic, "non-accurate" stuff) is to turn gravity all the way down, turn global damping all the way up... and then you can almost "mold" objects. Except that motors should turn off in that mode too... very annoying.

Your grid demo is handy - I wonder, could you add a polar grid option? It would make it so much easier to draw nice wheels and such.

I also would like to add an "align grid to object" function, because more often than not, you want everything to be parallel and perpindicular (on mechanical scenes anyway).

Keep the ideas coming!
Polar grid... makes sense. While I have no doubt, that drawing a polar grid can be done I'm a little scared on how to manage "snap to grid" with polar grid activated. But what can be done with a polar grid that can't be done with your handy "Radial Array" tool ?

"Snap" could be more versatile. "(soft) snap" itself would mean things snap to the grid if you're inside a certain margin. "Force Snap" could be the way snapping is currently dealt with in BoxCAD: everything WILL snap to grid, you can't draw offside the grid with "force snap" activated. However I'm not sure whether this option isn't too restrictive. I can easily align things to the grid with "soft snap" while still having the freedom to put things anywhere else. Then "object snap" would allow to snap to shape borders, corners, centers. So much stuff to play with... for now I'm voting for "(soft) snap" and "object snap".

"Align grid to object" would be easy with basic "re-align grid origin" functionality and "object snap" enabled.


[edit]

Being scared of the polar grid I played around with radial duplication. This time there are only circles and the algorithm pays no attention to the shape's orientation yet. But I like the look and feel of the tool itself.

Controls:
1) Click and drag to set center and starting angle
2) Press and hold CTRL to set filling angle by rotating the mouse around the center
3) Now additionally press and hold SHIFT to vary number of copies by rotating the mouse
4) Let go of the mouse button to spawn the shapes... you may now let go of CTRL + SHIFT too

Have fun 🙂
Now THAT'S freakin' awesome.

If I send you the base Tool class for BoxCAD and a couple examples, do you want to put it in BoxCAD form?
Okay, there it is, the updated version for everyone to play around with.

Drag to set center, angle and radius
Hold CTRL and rotate to set fill angle
Hold SHIFT and rotate to set number of copies
Release mouse button to spawn shapes

Simply click to spawn the previous set of shapes

ESC to cancel current operation and/ or reset to default values. (12 copies, 360 degree, 50px radius)




Please report any bugs or suggestions. Thanks!
Very nice, kiro. Very nice indeed.
Hi guys,

What's the trick with Play/Pause? How to implement it in Phys.fla demo?

Thanks for reply,
Q.
Simply... stop stepping the engine?

Or put in a negative value and watch it run backwards. 😆
http://www.brainblitz.org/BoxCAD/BoxCAD_source_AS3.zip
So, sorry about a necro/bump but it seems that the brainblitz site has died and I can't find a copy of this newest version anywhere. If anyone has it, please upload it somewhere, or maybe attach it here. It would surely make my life a lot easier with level development in my game.
That link appears to be deceased, but the brainblitz site is still up and running.

http://www.brainblitz.org/BoxCAD/

Original thread: https://box2d.org/forum/viewtopic.php?t=702