This commit is contained in:
flswld committed 2023-10-18 23:38:40 +08:00
1 parent cbf9fdfa47
commit d20ecfc25f
1 file changed
+3 -10
+3 -10
View File
@@ -99,16 +99,9 @@ func (s *Scene) CreateEntityAvatar(player *model.Player, avatarId uint32) uint32
id: entityId,
scene: s,
lifeState: avatar.LifeState,
pos: &model.Vector{
X: player.Pos.X,
Y: player.Pos.Y,
Z: player.Pos.Z,
}, // 所有角色实体暂时公用玩家的位置信息
rot: &model.Vector{
X: player.Rot.X,
Y: player.Rot.Y,
Z: player.Rot.Z,
},
// 所有角色实体暂时公用玩家的位置指针
pos: player.Pos,
rot: player.Rot,
moveState: uint16(proto.MotionState_MOTION_NONE),
lastMoveSceneTimeMs: 0,
lastMoveReliableSeq: 0,