diff options
author | VolTer <mew.pur.pur@abv.bg> | 2023-04-28 22:59:03 +0200 |
---|---|---|
committer | VolTer <mew.pur.pur@abv.bg> | 2023-05-20 03:25:26 +0200 |
commit | e3d0da404fd46bef48a816e27897c81140d46aa9 (patch) | |
tree | 2dac4b85467d0b9f7ea9967736a7322a3c8e4647 /doc/classes/AnimatableBody2D.xml | |
parent | c80a2b4fe99dcd0bba6fc24ed2748b1474b24448 (diff) | |
download | redot-engine-e3d0da404fd46bef48a816e27897c81140d46aa9.tar.gz |
Overhaul the top sections of the class reference (Physics classes)
Diffstat (limited to 'doc/classes/AnimatableBody2D.xml')
-rw-r--r-- | doc/classes/AnimatableBody2D.xml | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/doc/classes/AnimatableBody2D.xml b/doc/classes/AnimatableBody2D.xml index fa99d774c2..2a0f831fe6 100644 --- a/doc/classes/AnimatableBody2D.xml +++ b/doc/classes/AnimatableBody2D.xml @@ -1,12 +1,11 @@ <?xml version="1.0" encoding="UTF-8" ?> <class name="AnimatableBody2D" inherits="StaticBody2D" version="4.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> <brief_description> - Physics body for 2D physics which moves only by script or animation (while affecting other bodies on its path). Useful for moving platforms and doors. + A 2D physics body that can't be moved by external forces. When moved manually, it affects other bodies in its path. </brief_description> <description> - Animatable body for 2D physics. - An animatable body can't be moved by external forces or contacts, but can be moved by script or animation to affect other bodies in its path. It is ideal for implementing moving objects in the environment, such as moving platforms or doors. - When the body is moved manually, either from code or from an [AnimationPlayer] (with [member AnimationPlayer.playback_process_mode] set to [code]physics[/code]), the physics will automatically compute an estimate of their linear and angular velocity. This makes them very useful for moving platforms or other AnimationPlayer-controlled objects (like a door, a bridge that opens, etc). + An animatable 2D physics body. It can't be moved by external forces or contacts, but can be moved manually by other means such as code, [AnimationPlayer]s (with [member AnimationPlayer.playback_process_mode] set to [code]ANIMATION_PROCESS_PHYSICS[/code]), and [RemoteTransform2D]. + When [AnimatableBody2D] is moved, its linear and angular velocity are estimated and used to affect other physics bodies in its path. This makes it useful for moving platforms, doors, and other moving objects. </description> <tutorials> </tutorials> |