I am following tutorial for multiplayer and I am having issues with finding what is the problem. When I run the application with socket.io library where I host on Glitch, it shows error that rigid body is null.
[network.js?id=52287955&branchId=5b48683d-757e-43c4-a6a9-4330ca3ef324:76]: Uncaught TypeError: Cannot read property 'rigidbody' of null
TypeError: Cannot read property 'rigidbody' of null
at scriptType.Network.pohybHrace (https://launch.playcanvas.com/api/assets/files/Scripts/network.js?id=52287955&branchId=5b48683d-757e-43c4-a6a9-4330ca3ef324:76:36)
at f. (https://launch.playcanvas.com/api/assets/files/Scripts/network.js?id=52287955&branchId=5b48683d-757e-43c4-a6a9-4330ca3ef324:22:14)
at f.r.emit (https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.1.3/socket.io.min.js:6:2617)
at f.value (https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.1.3/socket.io.min.js:6:35589)
at f.value (https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.1.3/socket.io.min.js:6:30035)
at f.value (https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.1.3/socket.io.min.js:6:29741)
at f.value (https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.1.3/socket.io.min.js:6:29370)
at y.r.emit (https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.1.3/socket.io.min.js:6:2617)
at y.value (https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.1.3/socket.io.min.js:6:35791)
at y.value (https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.1.3/socket.io.min.js:6:16871)
I imagine that’s the list where you hold the player entities created right? Check if you are creating the entity and adding it in that list before attempting to access it.