Jump to content

Question for modders: How feasible is a mod that utilizes forces?


Recommended Posts

Posted

Say something gets pushed by a piston, bounces off of a stretchy trampoline, is launched out of a cannon, whatever. Can a force be applied to a player or entity that makes it accelerate along any given axis? Does Vintage Story already support force/acceleration vectors, or could something similar have to be achieved using velocity vectors?

I've been thinking about making a code mod for items or blocks that players can use to push things around dynamically or even move themselves. Will I be in for a hard time trying to implement something like this?

Posted

it should be possible, but you are probably going to lose your mind.

there are mentions of something called "controlledphysics" in the game files, but i have no clue if that would work. 

I still think you should go for it, but dont expect it to be easy.

  • Like 2
Posted

This could be fun or really trying depending on how much detail you really want to get into. ....there is a reason most early physics classes ignore things like air resistance...

Given a few simplifying assumptions, I don't think this would be too bad, but if you go into a lot of detail, this could be quite an ordeal and very performance heavy.

  • Like 1
Posted

My best guess is that implementing something like this is the easy part. The hard part is probably going to be figuring out how to get it to do exactly what you want, how you want, in addition to fixing whatever the mod manages to break in the process.

  • Like 1
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.