Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

316
Vistas
How to get size of bounding box in Phaser 3, Spine?

If i write sprite.drawDebug = true, it will show bouding box.

Bounding box in Spine 2D

about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Depending what exactly you need, it will be more or less difficult since this data is not exposed in a "user friendly" way (as far as I know) here is the link to the documentaiton

The SpinePlugin uses the sprite.drawDebug = true flag to show many different parts of the spine data.
In this example you can see, how this parts a divided: https://phaser.io/examples/v3/view/spine/draw-debug-bounds#

screenshot example

With the Buttons you can switch on and off the different parts

Depending on which group of boxes you need, you would have to access the data, similar as the plugin itself. (here is the link to the plugin source code around lines 9936 ~ 10095 ). The data should be in the property sprite.skeleton , but you would have to find the parts you really need.

Update:
if you are using physics and the physics bounding box is enough, like in this example: https://phaser.io/examples/v3/view/spine/arcade-physics-spine-body#

you could get the size of the bounding box with image.body.width and image.body.height, and you can alter it also with setSize.

screenshot physics altered example

about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda