Click or drag to resize

Colliders Methods

The Colliders type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAdjustCollider
Adds or adjusts a primitive collider on the mesh.
Public methodStatic memberGetActiveColliderT
Returns the first active collider of the requested type.
Public methodStatic memberGetColliderOfTypeT
Returns a collider of the requested type or creates one if needed.
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 memberSafeDestroy
Destroys the collider in a way which is safe for physical callback methods.
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