DragonBones / DragonBonesJS

DragonBones TypeScript / JavaScript Runtime
MIT License
746 stars 320 forks source link

怎么求2d精灵的宽高 #74

Closed shijunti19 closed 4 years ago

shijunti19 commented 6 years ago

我查了半天好像width和height都是缩放比例,我是0.2 怎么求在场景中的实际高度,像素,我想做物理碰撞用

cpet commented 4 years ago

If you're using Phaser 2 or 3 I remember you can get the container width and height using the getBounds() method on container. Google Translator: 如果您使用的是Phaser 2或3,我记得您可以使用容器上的getBounds()方法获得容器的宽度和高度。

jcyuan commented 4 years ago

请使用getBounds()