Click or drag to resize

CollidersSetCollisionIgnores Method (Part, Part, Boolean)

Disables/enables all the colliders between the parts.

Namespace:  KSPDev.ModelUtils
Assembly:  KSPDev_Utils.1.1 (in KSPDev_Utils.1.1.dll) Version: 1.1 for KSP v1.6+
Syntax
C#
public static void SetCollisionIgnores(
	Part part1,
	Part part2,
	bool ignore
)
Request Example View Source

Parameters

part1
Type: (Default Namespace)Part
Source part.
part2
Type: (Default Namespace)Part
Target part.
ignore
Type: SystemBoolean
If true then the collisions between the parts will be ignored. Otherwise, the collisions will be handled.
Remarks
The ignore state is reset to false on every scene load.
See Also