Hello. I'm not well familiar with Wade yet, but I wanted to create a collision that works with irregular shapes of objects. I created a working collision with:
onOverlap
and
let collision = this.getOverlappingObjects();
for (let i = 0; i < collision.length; i++){
if(collision[i].getName() === 'SceneObject_0'){
this.stopMoving();
}
}
However, it is limited to a square. How can I create the same effect but in an irregular shape?
Physics Shape Editor would be ideal for this purpose, but can I implement it somehow?
I wanted to point out that the movement of my element takes place like this:
let sheep = wade.getSceneObject('sheep'),
x = data.screenPosition.x,
y = data.screenPosition.y;
sheep.moveTo(x, y, 100);
I don't want to create movement in the isometric mode because there is a limit to 4 directions (unless I can somehow increase it to eight ??). But this option which I chose seems to me more flexible due to the ability to move in each direction. Can anyone solve a similar problem?
PS: Will I be able to use pathfinding in the future with solutions that I have adopted?
Regards!!!
Tomash