generated docs added

This commit is contained in:
n00b
2024-10-24 23:25:02 -04:00
parent b14019f9a9
commit 6edb1bc09d
939 changed files with 88629 additions and 8 deletions

View File

@@ -0,0 +1,104 @@
<!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>CreateConeConstraint [RCBasic Doc] </title>
</head>
<body>
<p><h1>function CreateConeConstraint( actorA, rbAFrame_matrix) </h1></p>
<p>
The Cone Constraint is a type of joint constraint used to simulate realistic rotational movement between two actors (or between an actor and the world) with specific angular limits. This constraint is especially useful for simulating ball-and-socket joints with some twisting freedom but restricted cone-like movement, such as human shoulders or robotic arms.
</p>
<p id="rc_code"><code>
actorA&nbsp;=&nbsp;CreateCubeActor<b>(</b><span class="rc_number">100</span><b>)</b>&nbsp;<br>
&nbsp;&nbsp;<br>
rbA&nbsp;=&nbsp;DimMatrix<b>(</b><span class="rc_number">4</span>,&nbsp;<span class="rc_number">4</span><b>)</b>&nbsp;<span class="rc_comment">'A transform matrix should be a 4x4 matrix </span><br>
SetIdentityMatrix<b>(</b>rbA,&nbsp;<span class="rc_number">4</span><b>)</b>&nbsp;<span class="rc_comment">'This will set rbA to a 4x4 identity matrix </span><br>
SetMatrixTranslation<b>(</b>rbA,&nbsp;<span class="rc_number">0</span>,&nbsp;<span class="rc_number">40</span>,&nbsp;<span class="rc_number">0</span><b>)</b>&nbsp;<span class="rc_comment">'Set the point where the constraint connects to actorA to 1 unit above its origin </span><br>
SetMatrixRotation<b>(</b>rbA,&nbsp;<span class="rc_number">0</span>,&nbsp;<span class="rc_number">0</span>,&nbsp;<span class="rc_number">0</span><b>)</b>&nbsp;<span class="rc_comment">'Sets the angle the constraint is attached at to 0 on all axes </span><br>
&nbsp;&nbsp;<br>
test_cone&nbsp;=&nbsp;CreateConeConstraint<b>(</b>&nbsp;actorA,&nbsp;rbA&nbsp;<b>)</b>&nbsp;<br>
</code></p>
<p>
Note: It is recommended to use CreateConeConstraintEx() in most cases
</p>
<br><p>Related:
<a href="createconeconstraintex.html">CreateConeConstraintEx</a>
<a href="setidentitymatrix.html">SetIdentityMatrix</a>
<a href="setmatrixtranslation.html">SetMatrixTranslation</a>
<a href="setmatrixrotation.html">SetMatrixRotation</a>
</p>
<p>
</body>
</html>