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

30 lines
1.0 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>ApplyActorForceLocal [RCBasic Doc] </title>
</head>
<body>
<p><h2>sub ApplyActorForceLocal( actor, x, y, z, rel_x, rel_y, rel_z) </h2></p>
<p>
Applies a force to an actor at a specific point. Unlike ApplyActorCentralForce(local/world), which applies force only at the center of mass (affecting linear velocity), this can generate both linear motion and rotation (torque), depending on where the force is applied relative to the center of mass.
</p>
<ul>
<li>
x,y,z - direction of the force
</li>
<li>
rel_x, rel_y, rel_z - position to apply the force to relative to the center of mass
</li>
</ul>
<br><p>Related:
<a href="applyactorforceworld.html">ApplyActorForceWorld</a>
<a href="applyactorcentralforcelocal.html">ApplyActorCentralForceLocal</a>
<a href="applyactorcentralforceworld.html">ApplyActorCentralForceWorld</a>
</p>
<p>
</body>
</html>