Click or drag to resize

CollidersUpdateColliders Method

Sets the specified values to colliders of all the objects in the part's model.

Namespace:  KSPDev.ModelUtils
Assembly:  KSPDev_Utils.1.0 (in KSPDev_Utils.1.0.dll) Version: 1.0 for KSP v1.6+
Syntax
C#
public static void UpdateColliders(
	GameObject parent,
	Nullable<bool> isPhysical = null,
	Nullable<bool> isEnabled = true
)
Request Example View Source

Parameters

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