Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ammo: object losing physics - when body = kinematic and shape = mesh #58

Open
intentmoose opened this issue Mar 27, 2024 · 0 comments
Open

Comments

@intentmoose
Copy link

intentmoose commented Mar 27, 2024

Objects, when given kinematic body and shape of mesh they are losing their physics. I can tell since the debug outline on the item is lost and nothin is emitted when collided.

Check out this Glitch

Code when it breaks:

<a-entity
      geometry="primitive: torus; radius: 1; radiusTubular: 0.1; arc:360"
      rotation="90 0 0"
      ammo-body="type: kinematic; emitCollisionEvents: true;"
      ammo-shape="type: mesh">
</a-entity>

image

Static as a working example:

<a-entity
      geometry="primitive: torus; radius: 1; radiusTubular: 0.1; arc:360"
      rotation="90 0 0"
      ammo-body="type: static; emitCollisionEvents: true;"
      ammo-shape="type: mesh">
</a-entity>

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant