superframe icon indicating copy to clipboard operation
superframe copied to clipboard

AABB-colider keeps hitting old position

Open herrKlein opened this issue 4 years ago • 1 comments

Problem: the AABB-colider retains old position when object is moved.

It manifest also in the official example. https://supermedium.com/superframe/components/aabb-collider/examples/basic/. It seems the aabb colider component only remembers the old position of the block and when it moves it still colides with the old entity. The gif demonstrates this.

ezgif com-video-to-gif

herrKlein avatar May 21 '20 17:05 herrKlein

not sure if this applies but on the readme for aabb-collider it mentions adding:

data-aabb-collider-dynamic

attribute if the 'target' is moving, they're assumed to be static - does that help?

damned avatar Jul 14 '20 20:07 damned

To update @herrKlein - you have to add data-aabb-collider-dynamic="true" to the green box in order to fix this issue. I had the same issue you did and this will 100% fix the issue. Can probably close this open issue now.

jadegamesuk avatar Nov 19 '22 15:11 jadegamesuk

@dmarcos you can close this issue.

vincentfretin avatar Jun 12 '23 12:06 vincentfretin

This should be fixed now. closing

dmarcos avatar Jun 12 '23 23:06 dmarcos