View Issue Details

IDProjectCategoryView StatusLast Update
0022775Runner[All Projects] FunctionsPublic2021-08-06 16:10
ReporterDanfieldAssigned ToCoreTech 
PriorityMediumSeverityC - GeneralReproducibility100%
Status ResolvedResolutionFixed 
Platform OS OS Version
Product Version 
Target VersionFixed in Version 
Summary0022775: Functions: physics_joint_rope_create 'maxlength' values is altered incorrectly by physics_joint_set_value
DescriptionThe physics world property (set in the room's physics tab) 'Pixels To Meters' is not used consistantly when setting the maxlength of a rope.

Setting the length of a rope to 100 in physics_joint_rope_create will give a length of 100, setting the value 'phy_joint_max_length' of the rope to 100 using 'physics_joint_set_value' will result in a value of 1000 when the Room's Physics World Properties value 'Pixels To Meters' is set to 0.1.

No unit of measurement is included in the documentation so I cannot be sure which function is not taking Pixels To Meters into account when setting the value.
Steps To ReproduceRun the attached .gmz
Notice that the 2 length values are the same
Press up
Notice that the first value correctly increased by 0.2 and the actual length is now 10x the size it should be.
Close the window
Open the room's physics tab
Set the value Pixels to Meters to 1
Repeat the above and notice the value's always match
Repeat the above with any Pixels to Meters value you choose, notice that the actual rope length is rope length set divided by Pixels to Meters
Additional InformationOriginal helpdesk ticket:
Tagsphysics, Runner
1.4 Found In
2.x Runtime Found In
2.x Runtime Verified In



2021-08-06 16:10

Developer   ~0066673

No longer reproduces in v2.3.3. Closing.