![]() |
Rigs of Rods 2023.09
Soft-body Physics Simulation
|
Go to the source code of this file.
Functions | |
| Ogre::Vector3 | NearestPointOnLine (const Ogre::Vector3 &pt1, const Ogre::Vector3 &pt2, const Ogre::Vector3 &tp) |
| Find the point on a line defined by pt1 and pt2 that is nearest to a given point tp tp /| A / | / | / | pt1—o-----------—pt2 B' B. | |
Definition in file SlideNode.cpp.
| Ogre::Vector3 NearestPointOnLine | ( | const Ogre::Vector3 & | pt1, |
| const Ogre::Vector3 & | pt2, | ||
| const Ogre::Vector3 & | tp | ||
| ) |
Find the point on a line defined by pt1 and pt2 that is nearest to a given point tp tp /| A / | / | / | pt1—o-----------—pt2 B' B.
| pt1 | origin of two beams |
| pt2 | end point of beam being projected onto |
| tp | end point of beam being projected |
Definition at line 51 of file SlideNode.cpp.