Games

Save the items a 3D model holds in Directional Sprites (weapons and accessories, each a GLB fitted to one bone) on the model: the whole list, an empty one clears it. Returns the list as saved (Roles: user).

Changed on
post/games/sprite3d/attachments

Request

  • Base URL
    https://api.ludo.ai/api
  • Auth
    API key in header Authorization

Request body

model_idstring required

The 3D model's history id (its three_d_asset entry, keyed by image.id).

attachmentsobject[] required

Every item the model holds, each a Sprite3DAttachment (checked field by field by the server). An empty list clears them.

Response

Success

idstring
namestring
urlstring

The item's GLB, on our storage (one of the user's 3D models, or an uploaded file).

thumbstring

Its picture. Sent as a small image data uri (an upload's snapshot), it is hosted and saved as a url.

source'model' | 'upload'
modelIdstring

The item's own 3D model history id, when it is one of the user's models.

bonestring

The name of the bone that holds it.

point'right_hand' | 'left_hand' | 'head' | 'back' | 'hips'

The named place it was fitted to, when it was one.

baseScalenumber double
flippedboolean

Turned end for end at its grip.

gripboolean

The fingers closed round it.

positionnumber[]

Relative to the bone, x y z.

quaternionnumber[]

Relative to the bone, x y z w.

scalenumber[]

Changes