summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorMax Hilbrunner <mhilbrunner@users.noreply.github.com>2019-05-05 08:36:45 +0200
committerGitHub <noreply@github.com>2019-05-05 08:36:45 +0200
commitd8617f237acbed21ca4b1a9e7df2d28b32e511b1 (patch)
treea1b74bb8537c113d1f1ee95c6d0fecc22c677555 /doc/classes
parentf935c1ff9a4ed13fb1604da0a6d026683fb7ea07 (diff)
parent1170b78e2842e540f08ff40cba61eeb83324edec (diff)
Merge pull request #28643 from t-karcher/patch-1
Update of RigidBody2D class description
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/RigidBody2D.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/classes/RigidBody2D.xml b/doc/classes/RigidBody2D.xml
index 16ee1a444c..9a1802b515 100644
--- a/doc/classes/RigidBody2D.xml
+++ b/doc/classes/RigidBody2D.xml
@@ -7,7 +7,8 @@
This node implements simulated 2D physics. You do not control a RigidBody2D directly. Instead you apply forces to it (gravity, impulses, etc.) and the physics simulation calculates the resulting movement based on its mass, friction, and other physical properties.
A RigidBody2D has 4 behavior [member mode]s: Rigid, Static, Character, and Kinematic.
[b]Note:[/b] You should not change a RigidBody2D's [code]position[/code] or [code]linear_velocity[/code] every frame or even very often. If you need to directly affect the body's state, use [method _integrate_forces], which allows you to directly access the physics state.
- If you need to override the default physics behavior, you can write a custom force integration. See [member custom_integrator].
+ Please also keep in mind that physics bodies manage their own transform which overwrites the ones you set. So any direct or indirect transformation (including scaling of the node or its parent) will be visible in the editor only, and immediately reset at runtime.
+ If you need to override the default physics behavior or add a transformation at runtime, you can write a custom force integration. See [member custom_integrator].
</description>
<tutorials>
</tutorials>