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.2.5 (in KSPDev_Utils.2.5.dll) Version: 2.5 for KSP v1
Syntax
C#
public static void UpdateColliders(
	GameObject parent,
	bool? isPhysical = null,
	bool? isEnabled = null
)
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