Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | zub_zob |
3.2.2 stable
Setup:
I have a RigidBody2D and VisibilityEnabler2D as child.
The VisibilityEnabler2D has default settings and the RigidBody2D has an initial linear velocity set in editor.
Expected:
The RigidBody should start moving according to initial velocity when it enters screen.
Problem:
It doesn’t move.
The “fix”:
I use the VisibilityEnabler2D’s notifier and in RigidBody’s script:
func _on_VisibilityEnabler2D_screen_entered():
linear_velocity=linear_velocity
As silly as this looks, it works…