Click or drag to resize

Colliders Class

Various tools to deal with procedural colliders.
Inheritance Hierarchy
SystemObject
  KSPDev.ModelUtilsColliders

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 class Colliders
Request Example View Source

The Colliders type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAdjustCollider
Adds or adjusts a primitive collider on the mesh.
Public methodStatic memberGetSqrDistanceToPart
Returns the minimum square distance to the nearest point on the part's collider surface.
Public methodStatic memberGetSqrDistanceToPartOrDefault
Returns the minimum square distance to the nearest point on the part's collider surface.
Public methodStatic memberSetCollisionIgnores(Part, Part, Boolean)
Disables/enables all the colliders between the parts.
Public methodStatic memberSetCollisionIgnores(Part, Vessel, Boolean)
Disables/enables all the collidres between the part and a vessel.
Public methodStatic memberSetCollisionIgnores(Transform, Transform, Boolean)
Disables/enables all the colliders between the objects.
Public methodStatic memberSetSimpleCollider
Drops the colliders in all the children objects, and adds one big collider to the parent.
Public methodStatic memberUpdateColliders
Sets the specified values to colliders of all the objects in the part's model.
Top
See Also