Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

166
Views
¿Cómo sincronizo el elemento de cuerpo dinámico en red a-frame y a-frame-physics?

Actualmente estoy creando un mundo de realidad virtual en línea con multijugador, por lo que usé un marco en red para crear el mundo multijugador y estoy usando un sistema de física de marco para crear física. Pero cuando agrego un objeto sincronizado con cuerpo dinámico, el servidor no lo sincroniza, por lo que solo el creador del objeto puede moverlo.

 <a-assets> <template id="sphere"> <a-entity class="sphere"> <a-sphere color="blue"></a-sphere> </a-entity> </template> </a-assets> <a-entity dynamic-body position="0 3 -10" id="sphere" Networked="template:#sphere;attachTemplateToLocal:True"></a-entity> <!--Collide event--> <script> AFRAME.registerComponent('foo', { init: function() { this.el.addEventListener('collide', function(e) { console.log('Player has collided with ', e.detail.body.el); e.detail.target.el; // Original entity (playerEl). e.detail.body.el; // Other entity, which playerEl touched. e.detail.contact; // Stats about the collision (CANNON.ContactEquation). e.detail.contact.ni; // Normal (direction) of the collision (CANNON.Vec3). }); } }) </script>
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!