A simple part mod that add a controllable shock for modern active suspension. The part is same as the orginal Shock but add following three adjustable input:
- Spring Adjustment: dynamically change the suspension's spring value at runtime.
- Damper Adjustment: dynamically change the suspension's damper value at runtime.
- Linear Force Output: output force directly to the shock.
The output and the output range can be customized from the setting tab. one can use this shock to simulate air suspension system, Continuous Damping Control (CDC) and any other active suspension(like Mercedes-Benz's Magic Body Control) with Funky Trees code
Usage Example
MacPherson suspension with CDC
MacPherson suspension with full active suspension, this should work like Magic Body Control suspension system, Demo video
@PlaneFlightX I can't think of any other reasons for now, but checking console log may help. Here are some suggestions for finding out what is wrong:
If the console print "Can't find joint", that means adding attribute "requiresPhysicsJoint="true" doesn't work. What I can remember is that this attribute worked only when adding to one of particular AttachPoint. The solution is to try adding to the other AttachPoint.
If the console print "AttachPoint null", that means there are some errors in your AttachPoint setup. Check if you already add Unity object for attach points.
If none of above is printed and no error is in console, this part should work same as the original shock at least.
@lizi13399a Hi, I added the attribute, but it still doesn't work. There are no errors in the debug console. I checked all the settings as well and they are the same as yours. Is there anything else I may be missing?
@MVC Check if you add an attribute "requiresPhysicsJoint="true"" to one of AttachPoint of PartType XML. You can take the file Assets_ModAssets_\Parts\ActiveShock.xml as example. This is a special modification for the part, and it cannot be done through Unity Editor.
Hi @lizi13399a we have a problem. We added your part to our mod, but the shock doesn't work. changing the values does not affect anything. The shock remains motionless and the spring does not deflate. some joints are disconnected on their own.
could you tell us in more detail how it works and what we could have done wrong?
👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌🧀
👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌
这下有减振器了,希望弹簧本身能单独做成零件
@114514qwert114514 提一个建议就是可以把第一个有关于改弹簧的软硬设置的范围给调大一点,有的时候重车需要很硬的弹簧,而你那个弹簧刚性顶多到2.5还要手动改XML:)
做得十分甚至有九分的好,使我的前2后8自卸车可以运载十吨甚至九吨的fuselage而不像悬架使用原版的弹簧一样直接造成车轴断裂(喜
@lizi13399a Thank you for permission, I have also invited you to be a contributor to the mod page.
@Bricky Well, this is a classsic question. I was also expecting to make active suspension available on Android at the beginning of development , but finally I found out that Jundroo offically removed modding support of Android since version 1.9. Perhaps I can make this mod work on Simpleplane v1.8 Android without funkytree.
@MVC Of course you can add this part in your mod, the source code is already provided
((i feel so stupid askin this))
can you make android version?
Unfortunately, I can't even download this app. @PlaneFlightX and I are working on a large-scale car mod, we could add you as a co-developer and add these details to the mod if we could share your project in unity.
@MVC None of them works. Maybe you can contact me on blibili if you can create an account on it
@lizi13399a telegram, Reddit,X?
I need to contact you, I'm working on a large-scale car mod.
@MVC I was trying something with controlbase but I guess this would do
@lizi13399a such a pity we couldn't have you in SVT
Good
@MVC I would like to but discord is banned in my country...
Thank you so much! And join us (SVT SP car community)
https://discord.gg/zUJEcDf3
Dayumn 🔥