CollisionObject2D
PhysicsBody2D
StaticBody2D : 스태틱이거나 스크립트로만 움직이는 물체 벽/바닥 등
AnimatableBody2D : 스크립트/ 애니메이션으로 움직이는 물체. 플랫폼, 문 등
CharacterBody2D : 스크립트로 움직이는 캐릭터
RigidBody2D : 내장된 물리엔진이 들어가는 물리
Area2D : CollisionObject를 탐지할 수 있는 영역
CharacterBody2D
CharacterBody2D is a specialized class for physics bodies that are meant to be user-controlled. They are not affected by physics at all, but they affect other physics bodies in their path. They are mainly used to provide high-level API to move objects with wall and slope detection (move_and_slide() method) in addition to the general collision detection provided by PhysicsBody2D.move_and_collide(). This makes it useful for highly configurable physics bodies that must move in specific ways and collide with the world, as is often the case with user-controlled characters.
'Godot4' 카테고리의 다른 글
고도4 플래피버드류 (0) | 2023.11.25 |
---|---|
Resource (1) | 2023.11.24 |
Getter Setter in Godot (0) | 2023.11.24 |
@onready (0) | 2023.11.24 |
String (0) | 2023.11.24 |