MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / dAttachObjectRadius

Function dAttachObjectRadius

Descent3/DllWrappers.cpp:148–150  ·  view source on GitHub ↗

Attaches a child object to a parent object by a percent of the radius of the child. NOTE: The child always moves to the parent and not the reverse

Source from the content-addressed store, hash-verified

146// Attaches a child object to a parent object by a percent of the radius of the child.
147// NOTE: The child always moves to the parent and not the reverse
148bool dAttachObjectRadius(object *parent, char parent_ap, object *child, float percent_rad) {
149 return AttachObject(parent, parent_ap, child, percent_rad);
150}
151
152// Unattaches a child from an attach point
153bool dUnattachChild(object *parent, char parent_ap) { return UnattachChild(parent, parent_ap); }

Callers

nothing calls this directly

Calls 1

AttachObjectFunction · 0.85

Tested by

no test coverage detected