generated at
Godot 4: CharacterBody2D MotionMode
Godot EngineCharacterBody2DのMotionMode について
環境: Godot 4.0 stable
>enum MotionMode:
> MotionMode MOTION_MODE_GROUNDED = 0
> Apply when notions of walls, ceiling and floor are relevant. In this mode the body motion will react to slopes (acceleration/slowdown). This mode is suitable for sided games like platformers.
プラットフォーマーのようなゲーム向けのモード
壁や天井、床の概念が関連する場合に適用する
体の動きが斜面(slope)に反応sる
> MotionMode MOTION_MODE_FLOATING = 1
> Apply when there is no notion of floor or ceiling. All collisions will be reported as on_wall. In this mode, when you slide, the speed will always be constant. This mode is suitable for top-down games.
トップダウンゲーム向けのモード
全ての衝突は、on_wall として報告される
このモードでは、スライドしてもスピードは一定になる。