mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-06 19:57:12 +08:00
feat(FieldShow): 添加实体视图转换功能及新字段
为FieldShow组件添加useViewCast参数和entity引用,支持通过视图转换函数动态计算显示值 新增DROPPED_ITEM_GRAVITY相关字段到FieldStore 调整ItemDropped状态机的物品移动速度计算参数
This commit is contained in:
@@ -21,7 +21,7 @@ func _physics_process(_delta):
|
||||
linear_velocity = Vector2.ZERO
|
||||
else:
|
||||
var direction = (targetPlayer.position - position).normalized()
|
||||
var speed = 4000.0 / ((targetPlayer.position - position).length() ** (1 / 3.0))
|
||||
var speed = 5000.0 / ((targetPlayer.position - position).length() ** (1 / 3.0))
|
||||
apply_central_force(direction * speed)
|
||||
if position.distance_to(targetPlayer.position) < 60:
|
||||
targetPlayer.collectItem(item, stackCount)
|
||||
|
||||
Reference in New Issue
Block a user