# 即时命中

**即时命中**（Hitscan）是射击游戏中的一种武器机制：游戏从开火起点投射一条不可见的射线，检测该射线与什么相交，并立即施加命中结果，而不模拟弹丸在空间中飞行的过程。<sup>[1](https://ubgworld.com/articles/hitscan-in-gaming-what-it/)</sup> 这一名称来自“hit scanline”（命中扫描线）或“hit scan ray”（命中扫描射线），指的是早期3D游戏中使用的射线投射技术。<sup>[2](https://gamedesignskills.com/game-design/hitscan/)</sup> 该方法假定弹丸以近乎无限的速度沿直线飞行，这是对子弹速度一种不精确但实用的模拟。<sup>[3](https://wiki-origin.giantbomb.com/wiki/Concepts/Hitscan)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 从武器投射一条不可见射线；射线首先相交的对象承受命中，命中在开火计算中即被结算，而非经过一段飞行时间后结算<sup>[1](https://ubgworld.com/articles/hitscan-in-gaming-what-it/)</sup> |
| 首次使用 | id Software的《德军总部3D》（Wolfenstein 3D，1992）将即时命中应用于其手枪、机枪和链枪；《毁灭战士》（DOOM，1993）推广了这一方案<sup>[2](https://gamedesignskills.com/game-design/hitscan/)</sup> |
| 玩家可感知的特征 | 无需预判目标、无子弹下坠、碰撞即时判定<sup>[1](https://ubgworld.com/articles/hitscan-in-gaming-what-it/)</sup> |
| 射线检测的对象 | 由游戏定义的碰撞几何体和命中框，未必是可见的角色模型<sup>[1](https://ubgworld.com/articles/hitscan-in-gaming-what-it/)</sup> |
| 网络 | 即时命中消除了弹丸飞行时间，但不消除网络延迟；服务器使用延迟补偿，在4米/秒的移动速度下，250毫秒的往返时间上限被认为是合理的<sup>[1](https://ubgworld.com/articles/hitscan-in-gaming-what-it/)</sup><sup> • </sup><sup>[4](https://ieeexplore.ieee.org/document/7991545/)</sup> |
| 混合趋势 | 《使命召唤》（Call of Duty）自2019年起将一定距离内的子弹视为即时命中，超出后则作为模拟弹丸处理<sup>[5](https://www.pcgamer.com/games/fps/battlefield-6-is-making-an-excellent-case-to-skip-call-of-duty-this-year/)</sup> |
| 引擎支持 | 虚幻引擎（Unreal Engine）将底层机制暴露为Trace，即针对物理系统的线形或形状扫描<sup>[6](https://dev.epicgames.com/documentation/unreal-engine/traces-in-unreal-engine---overview)</sup> |

## 工作原理

当玩家使用即时命中武器开火时，游戏从开火起点投射一条线并检测该线与什么相交，几乎立即施加结果。<sup>[1](https://ubgworld.com/articles/hitscan-in-gaming-what-it/)</sup> 这赋予了即时命中武器三个决定性特征：无需预判目标，因为玩家瞄准的是目标当前位置；无子弹下坠，因为重力不会使数学意义上的射线弯曲；碰撞即时判定，因为命中在开火计算中即被结算，而非经过一段可见的飞行时间。<sup>[1](https://ubgworld.com/articles/hitscan-in-gaming-what-it/)</sup>

“即时”并不意味着游戏忽略了所有技术延迟。多人射击游戏仍然涉及输入时序、服务器处理、帧时序、插值和网络延迟。使用即时命中消除了弹丸飞行的延迟，但延迟依然存在，不同客户端可能无法同时感知事件。<sup>[1](https://ubgworld.com/articles/hitscan-in-gaming-what-it/)</sup>

**射线检测的对象。** 射线未必与角色可见模型发生交互。它检测的是游戏定义的碰撞几何体和命中框，其中可能包括头部、躯干、手臂、腿部、装备或护甲，以及护盾或临时防御物体的独立区域。如果命中框未占据可见轮廓内的某个区域，射线可以穿过该区域内的空白空间；而命中框可能比渲染模型略大或形状不同，以使游戏体验更加一致。<sup>[1](https://ubgworld.com/articles/hitscan-in-gaming-what-it/)</sup>

引擎也决定了射线首先遇到什么。如果射手与目标之间有一堵墙，墙通常会承受碰撞并阻挡射击。当武器能够穿墙时，引擎被允许在根据被击中材质降低伤害后，使射线延伸穿过第一个命中点；这仍然是射线投射，只是在初始碰撞之外附加了额外规则。<sup>[1](https://ubgworld.com/articles/hitscan-in-gaming-what-it/)</sup>

狙击步枪和手枪可以使用相同的基础射线投射，但手感完全不同。伤害、射速、后坐力、散布、衰减、穿透、瞄准行为和命中框倍率，都是叠加在碰撞方法之上的武器规则。<sup>[1](https://ubgworld.com/articles/hitscan-in-gaming-what-it/)</sup>

## 起源

即时命中机制早于id Software的《德军总部3D》（1992），曾出现在《迷宫战争》（Maze War）等更早的射击游戏中；《德军总部3D》将即时命中用于其手枪、机枪和链枪。<sup>[15](https://www.guinnessworldrecords.com/world-records/95409-first-first-person-shooter-fps-videogame)</sup> 开火时，引擎会立即从枪口投射一条射线，检测是否碰到敌人的命中框，若碰到则施加即时伤害。<sup>[2](https://gamedesignskills.com/game-design/hitscan/)</sup> 《德军总部3D》已经使用射线投射来渲染墙壁和检测碰撞，因此将其适配到武器上是自然的一步。《毁灭战士》（1993）随后为其武器采用了即时命中，使这一方案在第一人称射击游戏中流行开来。<sup>[2](https://gamedesignskills.com/game-design/hitscan/)</sup>

由于硬件限制，即时命中在20世纪90年代成为FPS枪械射击的标准，出现在《毁灭战士》、《雷神之锤》（Quake）和《毁灭公爵3D》（Duke Nukem 3D）等游戏中。随后在2000年代，它被依赖精度的竞技游戏进一步改良，包括《反恐精英》（Counter-Strike）和《光环》（Halo）。<sup>[2](https://gamedesignskills.com/game-design/hitscan/)</sup>

## 即时命中与抛射物武器

即时命中的替代方案是抛射物物理，即生成一个真实的弹丸并使其飞向目标。两种方法的区别在于玩家必须预判什么：抛射物武器需要预判目标并考虑飞行时间，而即时命中武器只要求在射击判定时准星位于目标的命中框上。<sup>[1](https://ubgworld.com/articles/hitscan-in-gaming-what-it/)</sup><sup> • </sup><sup>[7](https://salivity.github.io/game-development/article/hitscan-vs-projectile-physics-in-game-development)</sup> 抛射物武器也更受网络延迟影响，而即时命中的判定相对更能抵御延迟。<sup>[8](https://www.bungie.net/en/Forums/Post/2401116?page=0&sort=0)</sup>

一些游戏使用混合系统。《[使命召唤](https://www.edgepedia.org/zh/call-of-duty)》自2019年起使用一种系统：子弹在一定距离内被视为即时命中，超出后则变为模拟抛射物。在《战地6》（Battlefield 6）中，子弹飞行速度足够快，近距离感觉像即时命中武器，因此玩家不会对附近敌人预判射击，但在向120米外的狙击手开火时仍需考虑子弹下坠。<sup>[5](https://www.pcgamer.com/games/fps/battlefield-6-is-making-an-excellent-case-to-skip-call-of-duty-this-year/)</sup> 《总决赛》（The Finals）同样将其[KS-23](https://www.edgepedia.org/zh/ks-23)霰弹枪改为混合即时命中-抛射物武器，射击在25米内以即时命中结算。<sup>[9](https://devtrackers.gg/the-finals/p/cb32f3cb-mid-season-update-7-6-super-cashball)</sup>

## 实现

游戏引擎直接暴露底层机制。在[虚幻引擎](https://www.edgepedia.org/zh/unreal-engine)中，Trace允许开发者提供两个端点，让物理系统在它们之间投射一条线段，并报告所命中的任何启用了碰撞的实体；文档将Trace描述为一种可靠且计算开销低廉的高速度武器模拟方式。Trace可以返回第一个匹配的命中或线段上所有匹配的命中，形状Trace使用盒体、胶囊体或球体扫描一个体积而非一条线。<sup>[6](https://dev.epicgames.com/documentation/unreal-engine/traces-in-unreal-engine---overview)</sup> Valve的起源引擎（Source engine）文档同样涵盖了在编写武器实体时通过`FireBulletsInfo_t`结构设置即时命中攻击的方法。<sup>[10](https://developer.valvesoftware.com/wiki/Authoring_a_weapon_entity?uselang=en)</sup>

## 网络与延迟补偿

由于即时命中射击在开火瞬间即被判定，多人游戏中的命中判定取决于服务器如何协调其对世界的视图与客户端的视图。延迟补偿将服务器状态回退到射击玩家所看到的状态，这引入了一种被称为“隔墙射击”的不一致：刚刚进入掩体的玩家仍然会被击中。对此效应的研究发现，在4米/秒的移动速度下，250毫秒的延迟补偿上限是合理的，且经验丰富的FPS玩家能察觉到他们被隔墙击中的频率。<sup>[4](https://ieeexplore.ieee.org/document/7991545/)</sup> 在《战地4》（Battlefield 4）和《[守望先锋](https://www.edgepedia.org/zh/overwatch)》（Overwatch）中，往返时间超过250毫秒的玩家不获得延迟补偿，同一研究认为该上限在该移动速度下是合理的。<sup>[11](https://theses.lib.polyu.edu.hk/bitstream/200/9783/1/991022186259703411.pdf)</sup> Valve的起源引擎保留所有玩家最近一秒内的位置历史，以支持这种回退。<sup>[12](https://developer.valvesoftware.com/wiki/Source_Multiplayer_Networking?language=uk)</sup>

## 设计权衡与平衡性调整

开发者在即时命中的响应性与它对反制手段的影响之间进行权衡。《创世战车》（Crossout）团队从其即时命中武器中移除了即时伤害，给出四个理由：即时命中不需要预判目标，这在高射速下更为重要；它让目标没有闪避机会；它无法与穿透机制配合；即时命中机枪纯粹为了平衡而需要不自然的大散布和严格的射程限制。即时命中仅保留给激光武器——瞬时命中符合该武器的设计——以及无人机。<sup>[13](https://crossout.net/en/news/103)</sup> 转换为快速抛射物的武器获得了补偿性改动，例如SM黄蜂（SM Hornet）组的最大射程从300米增加到500米，并增加了穿透能力。<sup>[13](https://crossout.net/en/news/103)</sup>

即时命中还可以通过显式的命中体积进行调整。《守望先锋》的一个补丁将全局“大”即时命中弹丸尺寸从0.07米减小到0.04米，将“小”尺寸从0.04米减小到0.02米，开发者解释说，在命中体积更新消除了英雄之间的不一致之后，即时命中射击被缩小以维持相近的有效性水平。<sup>[14](https://overwatch.blizzard.com/en-us/news/patch-notes/live/2026/10/)</sup>

## References

1. [Hitscan in gaming: what it is and how it works, UBG World](https://ubgworld.com/articles/hitscan-in-gaming-what-it/)
2. [Hitscan in Video Games: Meaning, Principle, Comparison, Origin, Game Design Skills](https://gamedesignskills.com/game-design/hitscan/)
3. [Hitscan (Concept), Giant Bomb Wiki](https://wiki-origin.giantbomb.com/wiki/Concepts/Hitscan)
4. [On "shot around a corner" in first-person shooter games, IEEE NetGames 2017](https://ieeexplore.ieee.org/document/7991545/)
5. [Battlefield 6 is making an excellent case to skip Call of Duty this year, PC Gamer](https://www.pcgamer.com/games/fps/battlefield-6-is-making-an-excellent-case-to-skip-call-of-duty-this-year/)
6. [Traces in Unreal Engine - Overview, Epic Developer Community](https://dev.epicgames.com/documentation/unreal-engine/traces-in-unreal-engine---overview)
7. [Hitscan vs Projectile Physics in Game Development, Salivity](https://salivity.github.io/game-development/article/hitscan-vs-projectile-physics-in-game-development)
8. [What is hitscan exactly?, Bungie.net forums](https://www.bungie.net/en/Forums/Post/2401116?page=0&sort=0)
9. [Mid-Season update 7.6, THE FINALS dev tracker](https://devtrackers.gg/the-finals/p/cb32f3cb-mid-season-update-7-6-super-cashball)
10. [Authoring a weapon entity, Valve Developer Community](https://developer.valvesoftware.com/wiki/Authoring_a_weapon_entity?uselang=en)
11. [Hit registration algorithms in first-person shooter games, PolyU thesis](https://theses.lib.polyu.edu.hk/bitstream/200/9783/1/991022186259703411.pdf)
12. [Source Multiplayer Networking, Valve Developer Community](https://developer.valvesoftware.com/wiki/Source_Multiplayer_Networking?language=uk)
13. [Crossout: Jackpot update notes, Crossout](https://crossout.net/en/news/103)
14. [Overwatch Patch Notes, October 2026, Blizzard Entertainment](https://overwatch.blizzard.com/en-us/news/patch-notes/live/2026/10/)
15. [First first-person shooter (FPS) videogame](https://www.guinnessworldrecords.com/world-records/95409-first-first-person-shooter-fps-videogame)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Named software products and platforms › Web browsers, app stores, and mobile app platforms

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/hitscan

English original: https://www.edgepedia.org/hitscan
