Skip to reading
GDScript Programming & Godot

OnAttachPointContact

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

Earlier edition reference / Current 0.86.4.0 property paths > p. 350

Code example
func on_attach_point_contact(event: Dictionary = {}) -> void:
    Log(ToJSON(event))

A named attach-point watch reports entering or leaving point contact.

Source table from OnAttachPointContact, page 301
Common contextUse and limits
watchId, phase, entityId, point, targetId, targetPoint, sceneId, touching, swept, position, distance, fraction, contactRadius, dimensionFilter watchId and phase="enter" for a one-shot success. A swept contact may report enter and exit between samples. Stop the watch when its job ends and set a completion flag before awarding the result.
Page 301 of 378Permalink
Go to page