有没有办法在不翻转父节点的情况下翻转 collisionshape2d 以匹配动画?

问题描述 投票:0回答:0

如标题所说,有没有办法在不翻转父节点的情况下翻转敌人的collisionshape2d,以避免影响其他子节点?

KinematicBody2D (Parent)
├── Position2D (Child)
│   ├── FloorRay (Grandchild)
│   └── EnemySkinNode (Grandchild)
│       └── Sprite (Grandgrandchild)
│       └── AnimationPlayer (Grandgrandchild)
├── CollisionShape2D (Child) ← **I WANT TO FLIP THIS CHILD NODE**
├── CollisionShape2D (Child) ← **I WANT TO FLIP THIS CHILD NODE**
├── ControlNode (Child) ← **I DO NOT WANT TO FLIP THIS CHILD NODE**
│   └── ProgressBar (Grandchild)
2d godot
© www.soinside.com 2019 - 2024. All rights reserved.