我正在使用matter.js进行物理模拟。
我的问题是,是否可以更改精灵的大小?或者仅使用matter.js是否不可能实现?
这是我目前的代码:
Bodies.circle(x, y, 46, {
render: {
sprite: {
texture: 'images/stone.png'
//Is there a 'width:' or 'height' property?
}
}
});
我正在使用matter.js进行物理模拟。
我的问题是,是否可以更改精灵的大小?或者仅使用matter.js是否不可能实现?
这是我目前的代码:
Bodies.circle(x, y, 46, {
render: {
sprite: {
texture: 'images/stone.png'
//Is there a 'width:' or 'height' property?
}
}
});