BROKE PROTOCOL

BROKE PROTOCOL

Otillräckligt med betyg
Set-up a mod for Better Dynamic Objects
Av TheUnishark
A guide that explains ho to make a mod compatible with Better Dynamic Objects plugin.
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Description
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2250891874

Better Dynamic Objects is a plugin that permits to automatically restore position & rotation all 5 minutes of configurated objects.
How-to?
If you want your mod to work with this plugin you have to set it up correctly:

1) Your object prefab must be a physical entity (Physical properties or anything dependant to physical entity).
2) You must set the Main T to the main parent of your prefab. Position RB is your dynamic object.
3) Your dynamic object (can be either the main parent or any child GameObject) must have a Rigidbody component with Is Kinematic box checked. Don't forget to add a collider.
4) You can configure your Rigidbody component as you want (Mass, Drag, Gravity, etc...).
5) You must have a GameObject named is_dynamic_object as child of the main parent (case sensitive).
6) Set your prefab layer to "Physical"
7) You can build your prefab.

NOTE: Do not use Destructible script with Prop layer.