CollidersUpdateColliders Method |
Sets the specified values to colliders of all the objects in the part's model.
Namespace:
KSPDev.ModelUtils
Assembly:
KSPDev_Utils.1.1 (in KSPDev_Utils.1.1.dll) Version: 1.1 for KSP v1.6+
Syntaxpublic static void UpdateColliders(
GameObject parent,
Nullable<bool> isPhysical = null,
Nullable<bool> isEnabled = true
)
Request Example
View SourceParameters
- parent
- Type: UnityEngineGameObject
Game object to start searching for renderers from. - isPhysical (Optional)
- Type: SystemNullableBoolean
If true then collider will trigger physical effects. If false then it will only
trigger collision events. When it's null the collider setting won't be changed.
- isEnabled (Optional)
- Type: SystemNullableBoolean
Defines if colliders should be enabled or disabled. When it's null the collider setting
won't be changed.
See Also