Skip to reading
GDScript Programming & Godot

AlignAttachPoints()

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

Align Attach Points

Align two attach points once without establishing the same continuing attachment relationship.

Source table from AlignAttachPoints(), page 167
Option key / fieldMeaning and inputDefault
Object / Character entityIdChoose a scene entity ID.Blank
Attach Point pointName of the source attach point.Blank
Target Object targetIdChoose a scene entity ID.Blank
Target Attach Point targetPointName of the attach point on the target entity.Blank
Align Rotation alignRotationAlign point orientation as well as position.true

Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.

Code example
await AlignAttachPoints({"entityId": "archive_door", "point": "", "targetId": "archive_door"})

In use. Align two hands before a handshake pose. If either character then moves or the animation moves the hands apart, a one-time alignment is not guaranteed to keep contact throughout the animation.

Page 167 of 378Permalink
Go to page