generated from Persson-dev/Godot-Xmake
network: send player velocity
This commit is contained in:
@@ -35,6 +35,7 @@ class World : public godot::Node3D, public protocol::PacketHandler {
|
||||
|
||||
void AddPlayer(PlayerID a_PlayerId, godot::String a_PlayerName);
|
||||
void RemovePlayer(PlayerID a_PlayerId);
|
||||
void SetPlayerPositionAndRotation(PlayerID a_PlayerId, const godot::Vector3& a_Position, const godot::Vector3& a_Rotation);
|
||||
void SetPlayerPositionAndRotation(
|
||||
PlayerID a_PlayerId, const godot::Vector3& a_Position, const godot::Vector3& a_Rotation, const godot::Vector3& a_Velocity);
|
||||
};
|
||||
} // namespace blitz
|
||||
@@ -63,6 +63,7 @@ struct PlayerPositionAndRotation {
|
||||
PlayerID m_Player;
|
||||
godot::Vector3 m_Position;
|
||||
godot::Vector3 m_Rotation;
|
||||
godot::Vector3 m_Velocity;
|
||||
};
|
||||
|
||||
struct PlayerShoot {};
|
||||
|
||||
Reference in New Issue
Block a user