Jacsmac Posted Wednesday at 11:49 PM Report Posted Wednesday at 11:49 PM 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?
Helst_navngivet Posted Thursday at 07:25 AM Report Posted Thursday at 07:25 AM 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. 2
Vexxvididu Posted Thursday at 07:28 PM Report Posted Thursday at 07:28 PM 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. 1
LadyWYT Posted Thursday at 07:46 PM Report Posted Thursday at 07:46 PM 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. 1
Recommended Posts