aframe-physics-system icon indicating copy to clipboard operation
aframe-physics-system copied to clipboard

Dynamically positioned `dynamic-body` entities not relative to parent entity.

Open dsinni opened this issue 6 years ago • 0 comments

This one cropped up while I was putting some demos together for #225 .

In the demo below, I'm using a crate-generator component to spawn crates within a parent container entity, however their positions are not relative to the container. This only seems to happen when the dynamic-body component is added; static-body works as expected.

The crates should appear relatively near the center of the red wireframe.

I'm using aframe 0.8.2 with aframe-extras 4.2.0 and aframe-physics-system 3.2.0.

Code: https://glitch.com/edit/#!/crate-test

Demo: https://crate-test.glitch.me/

dsinni avatar Sep 24 '18 02:09 dsinni