Code Monkey home page Code Monkey logo

msphysics's People

Contributors

antonsynytsia avatar chegarty3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

msphysics's Issues

sketchup 2024

有人搞定怎么在2024上使用了么?
Has anyone figured out how to use it on 2024?

msp_lib.bundle 2.7 MacOS

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.

Make C++ Extension Thread Safe

NewtonDynamics allows for multithreading. All world, body, and joint callback functions within the C++ extension must be updated to be thread safe.

The size of the joins, motors etc.

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.

Crash on Mac

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??

Rework Collection Getter Functions

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.

MSPhysics Control Panel blocking view of simulation

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.

Values not saving?

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.

How to connect a model and a joint with key trigger in MSphysic

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
}

.mspreplay (re)load?

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?

Mass by density seems to ignore volume

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.

Adding support for custom keyboard shortcuts?

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

Unable to compile in MacOS

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'

serious bug regarding ui

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

Please help!

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 can't open the tutorial drive

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?

No tool tips on Mac

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?

Is there a way to add a tracer?

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.

Question: What does the MS in MSPhysics stand for?

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?"

Remote API access using C++ to MS Physics

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...

Framerate

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.

Using socket connections

Is there support for controlling joints sliders from messages received in a socket connection?

V1.1.0 Update to SU 2022 :)

*** 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 :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.