mobile support tweaks
This commit is contained in:
@@ -78,6 +78,9 @@ var _claw_l: CPUParticles3D = null
|
||||
var _claw_r: CPUParticles3D = null
|
||||
|
||||
|
||||
const RigidSkin = preload("res://rigid_skin.gd")
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
add_to_group(&"matador") # so every existing bull ability already targets the bear
|
||||
add_to_group(&"bear")
|
||||
@@ -85,6 +88,10 @@ func _ready() -> void:
|
||||
health_changed.emit(_hp, _hp)
|
||||
_skeleton = _find_skeleton(_mesh)
|
||||
_anim_player = _find_anim_player(_mesh)
|
||||
# Web (Mali/ANGLE) can't run Compatibility vertex-skinning; rebuild the bear as
|
||||
# non-skinned bone-attached pieces there. Desktop keeps smooth GPU skinning.
|
||||
if OS.has_feature("web"):
|
||||
RigidSkin.convert_tree(self)
|
||||
if _anim_player:
|
||||
_anim_idle = _resolve_anim(["IDLE_ON4LEGS", "IDLE"])
|
||||
_anim_run = _resolve_anim(["RUN_ON4LEGS", "RUN"])
|
||||
|
||||
Reference in New Issue
Block a user