Просмотр исходного кода

Merge pull request #41423 from KoBeWi/NEXT.FRAME

Mention that body_set_state is deferred
Rémi Verschelde 5 лет назад
Родитель
Сommit
f1230fa671
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      doc/classes/PhysicsServer2D.xml

+ 1 - 0
doc/classes/PhysicsServer2D.xml

@@ -804,6 +804,7 @@
 			</argument>
 			<description>
 				Sets a body state using one of the [enum BodyState] constants.
+				Note that the method doesn't take effect immediately. The state will change on the next physics frame.
 			</description>
 		</method>
 		<method name="body_test_motion">