I only discovered today that Defold has apply_torque and apply_linear_impluse built in

I’ve been using Defold for over half a year and really like using Defold, but I only discovered today, while browsing the following webpages, that Defold has apply_torque and apply_linear_impluse built in.

https://forum.defold.com/t/apply-impulse-in-2d-physics/74388

https://github.com/defold/defold/issues/8256

https://github.com/defold/defold/pull/8712

https://github.com/orgs/defold/projects/42/views/1

I was completely unaware of this before.

I previously used apply_force to achieve functionality similar to apply_torque, and set linear_velocity to achieve functionality similar to apply_linear_impluse.

I suspect this is due to a lack of relevant information in the Defold Manuals and Defold Examples. Therefore, I plan to write related documentations and examples for the Defold Manuals and Defold Examples in my spare time.

https://defold.com/manuals/

https://defold.com/examples/

4 Likes

In fact, when I searched “Defold apply_impluse” on Google, I couldn’t directly find the documentation for b2b.body.

I plan to add apply_torque example and apply_linear_impluse example on Defold Examples

3 Likes

I made a apply_torque example.

After the pull request above is approved, I will submit another pull request for this example, because I don’t yet know how to submit two pull requests simultaneously.

3 Likes

changed clear color and font, added kenney physics assets

2 Likes