Skip to content

Manual Content: physics_joint_weld_create() page needs to say the "ref_angle" argument uses radians #14221

@ClayRecords

Description

@ClayRecords

What is the bug?

The documentation for the ref_angle argument to the function physics_joint_weld_create says the following:

ref_angle	Real	The joint angle to maintain

This doesn't mention that the angle should be in radians, not degrees. This is pretty confusing because the rest of the project uses degrees!

I know I wasted many hours trying to debug this myself, and found another user in the following video who had to plug in random numbers before it worked. I was able to figure out it was in radians from there. https://www.youtube.com/watch?v=Sr86K69g3Mk

Ideally the ref_angle would be changed to use degrees, but the documentation could also be updated to specify radians as a unit like it does on this other page.

Manual Link

https://manual.gamemaker.io/monthly/en/#t=GameMaker_Language%2FGML_Reference%2FPhysics%2FJoints%2Fphysics_joint_weld_create.htm

Metadata

Metadata

Labels

documentationImprovements or additions to documentation are also required by this issue

Projects

Status

Verified

Relationships

None yet

Development

No branches or pull requests

Issue actions