Coder Social home page Coder Social logo

Comments (3)

joaoborks avatar joaoborks commented on May 19, 2024

if you prefer I can answer in portuguese as well

Hey Robson, I'd suggest you to sync the bullets by using the NetworkTransform and sync the Rigidbody 3D and tweak the Network Send Rate to suit your needs. The bullet must only move server side, and the clients will have its properties synced. I can tell it works and doesn't seem cheated, beacuse I'm using this structure on a personal project.

The ideal situation with this framework would be to have a more efficient way to sync the Rigidbody than the NetworkTransform, but it is not ready to do that yet.

Hope it helps, good luck!

from unity-fastpacedmultiplayer.

rbatistajs avatar rbatistajs commented on May 19, 2024

Vamos falar em português rsrs.

Então devo mandar um comando e criar a bala no servidor, e então sincronizar com os jogadores usando o NetworkTransform?

Não daria problemas com latência?
Pq o jogador estará um pouco a frente em comparação com o servidor,
a bala seria criada atras do jogador.

Eu estou tentando criar um jogo um pouco parecido com brawl stars.
Só que a predição de movimento quebra um pouco a precisão, pq as balas tem um certo range e velocidade lentas.

from unity-fastpacedmultiplayer.

joaoborks avatar joaoborks commented on May 19, 2024

Sim, e problema com latencia é o core de qualquer jogo multiplayer. Com o NetworkTransform da pra resolver em parte o problema, nao é o ideal mas funciona. Assim que a framework tiver estável, ela vai ter um funcionamento mais eficiente que vai mascarar a latencia.

from unity-fastpacedmultiplayer.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.