The Rigidbody2D.velocity doesn't move the Laser

Hello,

I did exactly as the mentor said but the Laser didn’t move forward at all. It remained in transform.position (of Player) where it should be instantiated.

I even tried to use AddForce as Unity Document suggested but it neither works.
Could anyone please help me detect what’s wrong? T.T

Hi Gin_chan,

Welcome to our community! :slight_smile:
What’s the value of projectileSpeed? Log it into your console to see whether it is 10.

Hello,

Thank you for replying. I’ve just figured out what’s wrong :smiley:
Turns out I need to tick on Simulated box on Rigidbody2D ( to enable it) then everything works normally.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms