Instal Steam
login
|
bahasa
简体中文 (Tionghoa Sederhana)
繁體中文 (Tionghoa Tradisional)
日本語 (Bahasa Jepang)
한국어 (Bahasa Korea)
ไทย (Bahasa Thai)
Български (Bahasa Bulgaria)
Čeština (Bahasa Ceko)
Dansk (Bahasa Denmark)
Deutsch (Bahasa Jerman)
English (Bahasa Inggris)
Español - España (Bahasa Spanyol - Spanyol)
Español - Latinoamérica (Bahasa Spanyol - Amerika Latin)
Ελληνικά (Bahasa Yunani)
Français (Bahasa Prancis)
Italiano (Bahasa Italia)
Magyar (Bahasa Hungaria)
Nederlands (Bahasa Belanda)
Norsk (Bahasa Norwegia)
Polski (Bahasa Polandia)
Português (Portugis - Portugal)
Português-Brasil (Bahasa Portugis-Brasil)
Română (Bahasa Rumania)
Русский (Bahasa Rusia)
Suomi (Bahasa Finlandia)
Svenska (Bahasa Swedia)
Türkçe (Bahasa Turki)
Tiếng Việt (Bahasa Vietnam)
Українська (Bahasa Ukraina)
Laporkan kesalahan penerjemahan
Vermillion, your math seemed to be fine. I just added the move vector in with the gravity vector and it worked. I probably studied it for two weeks, though, trying to figure out what the vector math was doing, but in the end I used your method and everything worked fine. I totally rewrote the code, but the calculations are the same.
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2710157500
iirc i tried to make that work, but screwed up the maths somehow, and was happy enough with the 1-grid behavior that i didn't bother debugging it.
I have stopped making scripts in SE over a year ago now.
If someone else would like to make a fork of this feel free.
I finally managed to make it only use blocks of a group, that works. Please let me know if you want the code snippet.
What is wrong?
fires the ship up and my jaw dropped amazing script and works Flawlessly
I'm making a tug ship to grab stuff and move around. The problem I have is that when I grab something, the mass of what I'm grabbing isn't considered by the native dampening system and my ship drops slowly (or fast if what I'm grabbing is too massive).
Your script somewhat fixes that behaviour, but then I have to "dampened" manually in every directions.
I was wondering if it was possible to modify your script (or rather make another version) so it would use the native dampening for all directions except up/down? So no "drift" left/right and forward/backward so the ship would just stop dropping.
I understand if this is too much to ask but it's worth a try.