GFProjectileConePattern3D¶
API Reference / Combat / 类索引
- 路径:
addons/gf/extensions/combat/projectiles/gf_projectile_cone_pattern_3d.gd - 模块:
Combat - 继承:
GFProjectileSpawnPattern3D - API:
public - 类别:资源定义 (
resource_definition) - 首次版本:
3.17.0
3D 水平扇形发射点模式。 围绕发射器局部 Y 轴分布 yaw,可叠加固定 pitch,并按变换前向生成点位。
成员概览¶
| 类型 | 名称 | 签名 |
|---|---|---|
| 属性 | projectile_count |
var projectile_count: int = 1 |
| 属性 | yaw_spread_degrees |
var yaw_spread_degrees: float = 0.0 |
| 属性 | pitch_degrees |
var pitch_degrees: float = 0.0 |
| 属性 | radius |
var radius: float = 0.0 |
| 方法 | _get_spawn_transforms |
func _get_spawn_transforms( emitter: Node3D, _projectile_context: Dictionary = {}, emit_count: int = -1 ) -> Array[Transform3D]: |
属性¶
projectile_count¶
- API:
public
默认发射数量。
yaw_spread_degrees¶
- API:
public
总水平扩散角度(度)。
pitch_degrees¶
- API:
public
额外俯仰角度(度)。
radius¶
- API:
public
生成点距离发射器的半径。
方法¶
_get_spawn_transforms¶
- API:
protected
func _get_spawn_transforms( emitter: Node3D, _projectile_context: Dictionary = {}, emit_count: int = -1 ) -> Array[Transform3D]:
生成 3D 扇形发射变换。
参数:
| 名称 | 说明 |
|---|---|
emitter |
发射器节点。 |
_projectile_context |
本次发射上下文。 |
emit_count |
调用方请求的数量;小于等于 0 时使用 projectile_count。 |
返回:全局 Transform3D 列表。
结构:
_projectile_context: Dictionary,本次发射上下文;当前实现不读取该字典。