Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
PhysicsBody2D¶
Inherits: CollisionObject2D < Node2D < CanvasItem < Node < Object
Inherited By: CharacterBody2D, RigidBody2D, StaticBody2D
Abstract base class for 2D game objects affected by physics.
Description¶
PhysicsBody2D is an abstract base class for 2D game objects affected by physics. All 2D physics bodies inherit from it.
Tutorials¶
Properties¶
input_pickable |
|
Methods¶
void |
add_collision_exception_with ( Node body ) |
move_and_collide ( Vector2 motion, bool test_only=false, float safe_margin=0.08, bool recovery_as_collision=false ) |
|
void |
remove_collision_exception_with ( Node body ) |
test_move ( Transform2D from, Vector2 motion, KinematicCollision2D collision=null, float safe_margin=0.08, bool recovery_as_collision=false ) |