예제 #1
0
        public virtual void SetMotion(Vector3 motion)
        {
            SetEntityMotionPacket pk = new SetEntityMotionPacket();

            pk.EntityRuntimeId = this.EntityID;
            pk.Motion          = motion;

            this.AsyncSendPacketViewers(pk);
        }
예제 #2
0
        protected void BoradcastMotion()
        {
            SetEntityMotionPacket pk = new SetEntityMotionPacket
            {
                EntityRuntimeId = this.EntityID,
                Motion          = this.GetMotion()
            };

            this.SendPacketViewers(pk);
        }
예제 #3
0
        public override void SetMotion(Vector3 motion)
        {
            SetEntityMotionPacket pk = new SetEntityMotionPacket();

            pk.EntityRuntimeId = this.EntityID;
            pk.Motion          = motion;

            SendPacket(pk);

            base.SetMotion(motion);
        }