New action for Physics behavior: Set the linear velocity towards an angle
This currently is not working. Can someone help me troubleshoot this?
Here is the event:
...and the error output:
I think this problem is very simple, can I get a hint?
I recompiled GDevelop.js but it did not help.
Here is the compiled runtime javascript:
Bump. Can someone help me with this? It's very simple and small, but not working. I must be overlooking something.
Can you share the project? I don't see any function like this in the current codebase. https://github.com/search?q=repo%3A4ian%2FGDevelop%20setLinearVelocityAngle&type=code
Can you share the project? I don't see any function like this in the current codebase. https://github.com/search?q=repo%3A4ian%2FGDevelop%20setLinearVelocityAngle&type=code
Thanks for your response. I have attached the project. It's a single sprite with physics behavior and a single action to set the linear velocity of the object.
You probably could not find it with your search because the branch is on my repo: https://github.com/search?q=repo%3Atristanbob%2FGDevelop++setLinearVelocityAngle&type=code
The commit that includes this function is here:
https://github.com/4ian/GDevelop/pull/5670/commits/f19d8ceccb826313136d9a5f08d5e865a744969a
I would like to use this feature in a game I'm building, and it reminded me that this feature is not added yet. I'll try to review it again tomorrow to see if I can get it to pass tests.
It's working!!!
Reason it didn't work? We MUST run the electron app at least once.
https://github.com/4ian/GDevelop/assets/8879811/90836211-26ff-4513-ae28-5fd1c92322e9
Project files: SetLinearSpeedPhysics.zip
More context: https://twitter.com/VictrisGames/status/1770625683603259765
This PR is ready to be reviewed.
I reverted the two commits I had made after running "npm format" in two different directories. I guess those weren't needed!
Now, the PR only includes the changes I wanted!
I tested it after these changes and it worked great.
Thanks for your help!
Thanks for this new action!