简体   繁体   English

如何连接两个Android设备以传输传感器数据(多人游戏)

[英]How to connect two android devices for transfer of sensor data(Multiplayer Gaming)

I want to connect two android devices(ie 2 mobiles) such that I use sensor in one phone, and data about its position and rotational changes are send to 2nd mobile, so that I can use that to move some object in this 2nd mobile accordingly. 我想连接两个android设备(即2个手机),以便在一部手机中使用传感器,并将有关其位置和旋转变化的数据发送到第二部手机,以便我可以据此在第二部手机中移动某些对象。 Thanks in advance. 提前致谢。

Sounds like you want to use Google Play Game Services Nearby Connections: 听起来您想使用Google Play游戏服务附近的连接:

https://developers.google.com/games/services/android/nearby https://developers.google.com/games/services/android/nearby

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM