Files
RCBASIC4/doc/doc_files/sethingelimit.html
2024-10-24 23:25:02 -04:00

111 lines
3.2 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<style>
table, th, td { border: 1px solid black; } th, td { padding: 10px; }
body { background-color: #064066; color: #FFFFFF; }
a { color: #40bfb8; }
a::before {
content: "---";
font-family: monospace, monospace;
display: inline-block;
margin-right: 6px;
color: #064066;
}
.rc_number { color: #0b9898; }
.rc_string { color: #dd4040; }
.rc_keyword { color: #6084a8; font-weight: bold; }
.rc_comment { color: #6e716e; }
#rc_code { font-family: Consolas,"courier new"; background-color: #2d3335; padding: 2px; font-size: 105%; }
ul, #myUL {
list-style-type: none;
}
#myUL {
margin: 0;
padding: 0;
}
.box {
cursor: pointer;
-webkit-user-select: none; /* Safari 3.1+ */
-moz-user-select: none; /* Firefox 2+ */
-ms-user-select: none; /* IE 10+ */
user-select: none;
}
.box::before {
content: "[+]";
font-family: monospace, monospace;
font-weight: bold;
color: #40bfb8;
display: inline-block;
margin-right: 6px;
}
.box {
font-weight: bold;
color: #40bfb8;
text-decoration: underline;
}
.check-box::before {
content: "[-]";
font-family: monospace, monospace;
font-weight: bold;
//color: dodgerblue;
color: #40bfb8;
}
.nested {
display: none;
}
.active {
display: block;
}
</style>
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>setHingeLimit [RCBasic Doc] </title>
</head>
<body>
<p><h1>sub setHingeLimit( constraint_id, low, high, softness, bias_factor, relaxation_factor) </h1></p>
<p>
Defines the angular limits of the hinge's rotation. A hinge constraint allows two actors (or one actor and the world) to rotate around a single axis, similar to a door hinge. This function restricts how far this rotation can go by setting minimum and maximum angles.
</p>
<p>
By default, if no limits are applied, the hinge can rotate freely around the axis.
</p>
<ul>
<li>
low: This is the minimum angular limit. It defines the smallest angle that the hinge can rotate to in the negative direction.
</li>
<li>
high: This is the maximum angular limit. It defines the largest angle that the hinge can rotate to in the positive direction.
</li>
<li>
softness: Controls how "soft" the limit is. A value closer to 0 results in a hard limit (instant stop when the limit is reached), while a value closer to 1 allows some "give" before the limit fully takes effect, making the motion smoother as the limit is approached.
</li>
<li>
bias_factor: Helps to correct drift or penetration by applying a correction bias when the hinge reaches the limit. A higher value will apply a stronger bias to correct errors in the position.
</li>
<li>
relaxation_factor: Controls how the hinge behaves once the limit is reached. A value closer to 1 results in faster relaxation after hitting the limit, while a lower value makes the motion more rigid.
</li>
</ul>
<br><p>Related:
<a href="gethingelimitbiasfactor.html">GetHingeLimitBiasFactor</a>
<a href="gethingelimitrelaxationfactor.html">GetHingeLimitRelaxationFactor</a>
<a href="gethingelimitsign.html">GetHingeLimitSign</a>
<a href="gethingesolvelimit.html">GetHingeSolveLimit</a>
</p>
<p>
</body>
</html>