S3D_LINK(3)
π« s3d_link β the "we're attached, bestie" syscall π«
ok so like. this is page S3D_LINK(3) from the s3d Manual (section 3, library calls, iykyk) and it's literally the cutest little function for making two objects stay together. no cap. π«Ά
β¨ NAME β¨
s3d_link β link object to another one
like. one object. another object. they're linked now. that's the whole vibe. π
πΈ SYNOPSIS πΈ
#include <s3d.h>
int s3d_link(int oid_from, int oid_to);
ok so you gotta pull in <s3d.h> first (obvi) and then you hit it with s3d_link and two object ids. simple. iconic. periodt. π
π¦ DESCRIPTION π¦
so here's the tea: a linked object will move along with it's link parent. literally just follows them around. main character and their plus-one energy. π
for example β picture a book on a table. very demure, very mindful. you can link the book to the table, and then the book will "keep on the table" if you move the table around in space. like, move the table, book comes too. no separation anxiety. π
and it's not just sliding around either β it will also rotate with the table etc. spin the table, the book spins. obsessed. π
ngl the example usesoid_fromandoid_toand the prose calls the second one the "link parent" β so yeah, thefromobject latches onto thetoobject. slay. π§
π AUTHOR π
Simon Wunderlich Author of s3d
that's it bestie, that's the whole page π β shoutout to the s3d manual for hosting S3D_LINK(3) in section 3, and go link some objects together, you absolute icon βπ
π¦ where this page comes from
- debian bookworm: s3d-doc 0.2.2.1-5 Β· GPL-2.0-or-later
- debian trixie: s3d-doc 0.2.2.1-7 Β· GPL-2.0-or-later
- ubuntu jammy: s3d-doc 0.2.2.1-3build1 Β· GPL-2.0-or-later
- ubuntu noble: s3d-doc 0.2.2.1-6build3 Β· GPL-2.0-or-later
- ubuntu questing: s3d-doc 0.2.2.1-7build1
- ubuntu resolute: s3d-doc 0.2.2.1-7build3 Β· GPL-2.0-or-later
- ubuntu stonking: s3d-doc 0.2.3-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms