antonsynytsia / msphysics Goto Github PK
View Code? Open in Web Editor NEWA NewtonDynamics wrapper for SketchUp.
Home Page: http://sketchucation.com/forums/viewtopic.php?f=323&t=56852#p516427
License: MIT License
A NewtonDynamics wrapper for SketchUp.
Home Page: http://sketchucation.com/forums/viewtopic.php?f=323&t=56852#p516427
License: MIT License
有人搞定怎么在2024上使用了么?
Has anyone figured out how to use it on 2024?
I have MSPhysics working on all version except the Apple Silicon Macs as msp_lib is not compiled for 2.7 version for Mac. If anyone could help that would be great.
How hard would it be to implement a simulated wind-tunnel with MSPhysics? Specifically I need to know how much lift and downforce acts on a model at about 200 mph.
NewtonDynamics allows for multithreading. All world, body, and joint callback functions within the C++ extension must be updated to be thread safe.
When I use other projects in my new project, the sise of joins don't follow my new project size. And they stay the same proportion when i change the size of all joints. Please, solve this problem.
Remove the back-up behavior in scene transitioning.
Good morning,
I installed MSPhysics 0.9.3 and AMS Library 3.3.0 on Mac 10.8.5, with Sketch Up 2015 Make, by Extension Warehouse.
Unfortunately it crashes if, once I clicked play, I try to move components with the mouse.
Where am I doing wrong??
The C++ extension should not have a global variable s_valid_bodies. Instead, each instance of the world should have its own collection variable. Same applies to joints. Additionally, all the collection getter functions should be within the scope of their associated world rather than global.
Every time I hit play, the "MSPhysics Control Panel" pops up right in the middle of the screen blocking my view of the simulation. There is nothing actually on the control panel, so I really don't need that to pop up, and there doesn't seem to be any way to disable it or move it out of the way until after the simulation has already started, in which case it is too late, because the initial part of the simulation is the critical part. Even if I move the control panel out of the way, it will just pop up back in the middle of the screen again when I restart the simulation.
I'm on Mac. Often times when I put in a value (say, to change density, or a controller value), it won't save. If I click on another field and then click on the original field again, it'll revert to the last value. The only way I can get it to change is to keep typing in the value, clicking off and on again, and repeating... it seems to finally change after 5-10 attempts.
Hi!
I tried to connect a model to the specified joint in msphysics by pressing a key, but I tried for a long time and failed. I couldn’t understand it after reading the manual,
I don’t understand how to release one of the models bound on the specified joint!
help~!!! o(╥﹏╥)o
my scriptcode is ________________________
onKeyDown {|key, val, char|
bx = simulation.find_body_by_name('bx') # a box model group
jw = simulation.find_joint_by_name('jw') #a Piston joint
jw.connect(bx) #but it's wrong
}
Hi, I have greatly enjoyed using MSPhysics and am using it in conjunction with Twilight Render. However I was recently rendering a fairly long replay recording and the renderer began rendering the same frame over and over. The original replay recording somehow dropped or was lost from the current model instance. I see the .mspreplay file in the .skp file location, is there a way to directly reload this replay file?
If I change the volume of an object without changing its size (e.g. by cutting an hole in it), I can see that the volume changes as shown in "entity info," but the mass does not change. i.e. two objects with the same size and mass density, but different volume, weight the same. Is this a bug? or is this expected? How is the mass calculated? I would think it should be mass = mass density x volume.
I have been following MSPhysics for a long time. When I tested it under Sketchup2022, all script and connector control parameters were invalid. thank you!
Hi, any plans to update the official version of MSPhysics to SketchUp 2019?
Hi there @AntonSynytsia! Thank you so much for this software - it's truly awesome :)
I was wondering if it might be possible to add keyboard shortcuts for some of the most common MSPhysics tools. Specifically, I think it'd be really helpful to add custom shortcuts for Toggle UI, Toggle play, and Reset.
I could possibly look into this, but first I wanted to ask if this was something you already thought about and found out was not possible?
I know that I can add custom shortcuts using Preferences/Shortcuts. But the only MSPhysics items I see in that list of choices are the ones included in the MSPhysics plugin menu. This doesn't include any of the play/pause controls.
Do you think the solution would be to just add those MSPhysics play/pause controls to the menu? Then we could add custom keyboard shortcuts?
I think this could greatly speed up people's workflow!
Thanks again. This is amazing work - especially since it's free.
Eric
I had to make the following changes to get msp_lib to link properly:
MrPrezident@0e6c4c4
However, even after those changes, the extension is loading, but it is not working. I'm seeing these errors in the Ruby Console when trying to run a simulation:
Entity at index 0 was not added to simulation:
TypeError:
Entity #<Sketchup::ComponentInstance:0x007f96fd813968> doesn't have any valid sub-collisions, making it an invalid compound collision!
/Users/nathan/Library/Application Support/SketchUp 2018/SketchUp/Plugins/MSPhysics/collision.rb:76:in `create'
/Users/nathan/Library/Application Support/SketchUp 2018/SketchUp/Plugins/MSPhysics/body.rb:155:in `initialize'
/Users/nathan/Library/Application Support/SketchUp 2018/SketchUp/Plugins/MSPhysics/simulation.rb:792:in `new'
/Users/nathan/Library/Application Support/SketchUp 2018/SketchUp/Plugins/MSPhysics/simulation.rb:792:in `add_group'
/Users/nathan/Library/Application Support/SketchUp 2018/SketchUp/Plugins/MSPhysics/simulation.rb:3207:in `block in activate'
/Users/nathan/Library/Application Support/SketchUp 2018/SketchUp/Plugins/MSPhysics/simulation.rb:3193:in `each'
/Users/nathan/Library/Application Support/SketchUp 2018/SketchUp/Plugins/MSPhysics/simulation.rb:3193:in `activate'
/Users/nathan/Library/Application Support/SketchUp 2018/SketchUp/Plugins/MSPhysics/simulation.rb:30:in `select_tool'
/Users/nathan/Library/Application Support/SketchUp 2018/SketchUp/Plugins/MSPhysics/simulation.rb:30:in `start'
/Users/nathan/Library/Application Support/SketchUp 2018/SketchUp/Plugins/MSPhysics/main.rb:809:in `block in <top (required)>'
SketchUp:1:in `call'
Error: #<NameError: uninitialized constant AMS::ClothWorks>
/Users/nathan/Library/Application Support/SketchUp 2018/SketchUp/Plugins/MSPhysics/control_panel.rb:129:in `open'
/Users/nathan/Library/Application Support/SketchUp 2018/SketchUp/Plugins/MSPhysics/simulation.rb:3318:in `activate'
/Users/nathan/Library/Application Support/SketchUp 2018/SketchUp/Plugins/MSPhysics/simulation.rb:30:in `select_tool'
/Users/nathan/Library/Application Support/SketchUp 2018/SketchUp/Plugins/MSPhysics/simulation.rb:30:in `start'
/Users/nathan/Library/Application Support/SketchUp 2018/SketchUp/Plugins/MSPhysics/main.rb:809:in `block in <top (required)>'
SketchUp:1:in `call'
after enabling UI, i cant navigate in properties, scrypt, joints, sound i stuck in simulation tab(can input in simulation tab but unable to navigate in properties a d other tabs)
i tries it in SU 2016, SU 2017 but same issue
For MSPhysics: I am looking for the script text to hide or unhide a group in combination with 'by tick'. Who knows a solution???
I get the following message:
You need permission
Switch to an account with permission. Learn more
What do I need to do to get permission to view the tutorials?
I'm not sure if this is an issue with MSPhysics or AMS Library, but the tools palettes don't behave like normal SketchUp palettes. There are no tool tips and the tools don't highlight to indicate that they are in use. It's very confusing for new users. Any ideas how we might debug and improve this?
I would like to add a tracer to my simulations (Similar to Algodoo tracer). Is there a way to do that? It seems like the emitter feature is close.
The name MSPhysics reminds me too much of the name "MSPaint," but I doubt MS is supposed to stand for "Microsoft" here. I'm curious though. I couldn't find any explanation anywhere. Is it supposed to be an abbreviation for "Master of Science?"
I made some spheres and bricks and the MS Physics toolbar is there but when I click the go triangle nothing happens - I just want them to fall onto a surface
Hello,
I want to control the servo joints as per angle values from a C or C++ program. How do I do this in MS physics? Please let me know. If there are any example programs which do this, then please let me know. Thanks in advance...
Hello,
first of all, thank you very much for the plugin, I'm using it to get an idea of where to place joints for a project I'm working on and your physics plugin gives me an idea to find the centre of balance.
I've run into a small issue that hampers my progress a bit, nothing too serious but it slows my workflow.
I've imported my .obj model using an OBJ importer plugin and when running the simulation, it gets really laggy.
FPS counter shows around 5 fps during the simulation.
My model is not the heaviest in poly count, but it does have some curves and a sphere.
The strange thing is however, whenever I press the middle mousebutton during simulation to pan around, the simulation runs flawlessly with no FPS issues whatsoever and as soon as I let go, the FPS goes down again resulting in a laggy simulation.
I've tried importing the file as 3ds but this didn't change anything.
I tried simulating a simple box, and this went without issues. So I'm guessing my model is on the heavy side with regards to polygons and whatnot, but I find it strange that there's no issue when holding the middle mousebutton to pan around.
Hope you can shed some light on a possible cause.
If you need additional info, please let me know.
I'm using Sketchup 2018.
The script field within the UI dialog does not resize correctly when opened.
Is there support for controlling joints sliders from messages received in a socket connection?
Do lefty and leftx work on Mac? I keep getting taken out of Play mode when I hit A or S (which each activate the tool associated with the default keyboard shortcut) and W and D do nothing.
I am trying to follow this tutorial. https://youtu.be/U4eXsz1fi0M?t=138
*** To use MSPhysics in SU2022, you have to install SU2019 on your computer. Otherwise, the plugin may not run in SU2022 ***
[ I don't know why .... ]
Please follow these steps:
go to Extension Manager,
install ams_Lib_v3.6.0h.rbz (newest version 3.7.1)
install MSPhysics_v1.0.3.rbz
Exit SketchUp
Get the files from
https://github.com/AntonSynytsia/MSPhysics/tree/anton-ver110
unzip and copy all files & folders to replace the old versions:
C:\Users\user\AppData\Roaming\SketchUp\SketchUp 2022\SketchUp\Plugins
then you can find it works again!
=============
Thanks to AntonSynytsia, MSPhysics is amazing, I love it :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.