Files
RCBASIC4/doc/files/createfrictionjoint.html
2024-12-14 15:28:03 -05:00

34 lines
863 B
HTML

<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>createFrictionJoint [RCBasic Doc] </title>
</head>
<body>
<p><h2>function createFrictionJoint( spriteA, spriteB, x, y, collide_connect) </h2></p>
<p>
Creates a Friction Joint
</p>
<p>
Friction joint. This is used for top-down friction. It provides 2D translational friction and angular friction.
</p>
<p>
Parameters
</p>
<ul>
<li>
spriteA - first body
</li>
<li>
spriteB - second body
</li>
<li>
x, y - Anchor point. A common world-space point where the friction forces will be applied on both bodies. This is usually set to the point where you want the bodies to "grip" or resist slipping relative to each other.
</li>
</ul>
<p>
</body>
</html>