Jackie Pi3tal

Results 106 comments of Jackie Pi3tal

`import { deg2rad } from 'detect-collisions'` also

since v9.9.0 you can use `body.move()` like this: ```ts function onDragMove() { const objectBody = collisionSystem.all().find((body): body is ObjectPoly => body instanceof ObjectPoly && body.id === this.id ); const speed...

I will try to do a stackblitz because I feel this can be done @whitespacecode probably today later

@whitespacecode isn't like this https://stackblitz.com/edit/detect-collisions-tehkkd?file=src%2FApp.js exactly what you need/talk about ??

> > @whitespacecode isn't like this https://stackblitz.com/edit/detect-collisions-tehkkd?file=src%2FApp.js > > exactly what you need/talk about ?? > > Nice, but it can pass through if too fast like 0.2 instead of...

updated https://stackblitz.com/edit/detect-collisions-tehkkd?file=src%2FApp.js to apply the maximum

I feel you @whitespacecode if you want to move from { x1, y1 } to { x2, y2 } without moving through walls imitating perfect drag do this: 1. lets...

think like this A: each step you move by a part of whole amount until you reach destination B: and after each small step you check for collisions C: if...

its like when you start at paris and want to go to rome you dont move instantly 1000 km you go 1m then check collision, in real life then again...

in the mean time play https://www.vikingsvillage.io/game/