Skip to content

A draft on a Unity UNET based authoritative character controller with prediction, reconciliation and interpolation.

License

Notifications You must be signed in to change notification settings

lucasmontec/UnetCharacterController

Repository files navigation

UnetCharacterController

[SORRY!] I have closed the source code. This is just the draft for the controller. I'm using the new version for my games and because this is a really valuable resource I can't give the code away. If you need help developing your own please contact me on my email and I'll answer a few questions on how to handle things ;)

Short description

A Unity UNET based authoritative character controller with prediction, reconciliation and interpolation.

ptBR

Um controlador de personagem para Unity feito com UNET autoritativo com predição, reconciliação e interpolação.

Hello!

Hi there! I'm a developer in a small game dev team in Brazil and while coding a Networked Character Controller I realized UNET didn't provided nothing authoritative and server side. Server side is really important to fight hackers in almost any fast paced game. I'm developing a fast paced FPS. Well, long story short I decided to create this server side controller and share here so we can improve it.

ptBR

Olá! Sou um desenvolvedor de um pequeno time de desenvolvimento de jogos no Brasil e enquanto programava um controlador de personagem multijogador eu percebi que a UNET não oferecia nada igual por padrão. Não havia uma opção com posicionamento server-side autoritativo. Colocar a posição no servidor é muito importante na luta contra os hackers em quase qualquer jogo rápido. Estou desenvolvendo um FPS rapído. Bom, resumindo eu decidi criar esse controlador server-side baseado no padrão da unity e dividir aqui para melhorar ele.

Getting started

Well, before you can put your hands to work you need to understand a bit of theory. I'll give you some study material so that you can better understand what the code (is supposed to do) does. You'll need to be confortable with these terms:

  • Prediction
  • Reconciliation
  • Interpolation
  • Dummy (Non local authority) clients
  • Lag compensation

It is also quite important to have some understanding of basic networking. Knowing what are the main differences between TCP and UDP, some quality of service theory too. But this is extra. Our controller is based on this articles:

ptBR

Bom, antes de começar a bater a cabeça no teclado será necessário que você conheça um pouco de teoria. Vou passar um material de estudo aqui para que você entenda melhor o que o código ~~~(deve fazer)~~ faz. Você precisa estar confortável com a seguinte terminologia:

  • Predição
  • Reconciliação
  • Interpolação
  • Clientes (não locais) Dummy
  • Compensação de lag

É também de grande importância ter algum conhecimento basico sobre redes. Saber a diferença principal entre TCP e UDP, algum conhecimento sobre a teoria de qualidade de serviço também. Mas isso é extra. Nosso controlador é baseado nos seguintes artigos:

Contributing

Lets talk about code now. Our controller is currently under heavy development and is subject to be a mess. Even though this is a fact, you cannot use this as an excuse to send bad code. I won't accept any pushes that are not well documented and with each commit well written. Our (Me and every contributor) directives will be the following:

  • Commit often but only if you finished something.
  • Commits don't need to be 'buildable' but they can't contain major errors also.
  • Commit messages must be descriptive of the work done.
  • Pushes are not often, we expect less than 10 per day.
  • Pushes need to have some work on them (meaningful pushes).
  • Comment your stuff. All of it.
  • Document your stuff. All of it.

ptBR

Vamos falar de código agora. Nosso controlador está sobre desenvolvimento pesado e está sujeito a estar uma bagunça. Mesmo que isso seja um fato, você não pode usar isso como desculpa para enviar código ruim. Eu não vou aceitar pushes sem documentação apropriada ou sem mensagens de commit bem escritas. Serão nossas (eu e vocês) diretivas:

  • Deem commits frequentemente mas só quando tiverem completado trabalho
  • Commits não precisam ser 'buildáveis' mas não podem conter erros grosseiros também
  • Mensagens de commit precisam descrever o trabalho realizado
  • Não deem pushes demais, vamos esperar menos do que 10 por dia
  • Pushes devem ter trabalho feito, devem ser significativos.
  • Comentem todo seu código.
  • Documentem todo seu código.

About

A draft on a Unity UNET based authoritative character controller with prediction, reconciliation and interpolation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published