载入中...
搜索中...
未找到
Rope3DSampling.cpp
浏览该文件的文档.
8Rope3D::Vec3 subtract(Rope3D::Vec3 a, Rope3D::Vec3 b) { return {a.x - b.x, a.y - b.y, a.z - b.z}; }
47 if (it->active) return normalized(subtract(particles_[it->b].position, particles_[it->a].position));
float getSampleTangentX(float mu) const
Samples a normalized current tangent by active material length.
Definition Rope3DSampling.cpp:54
float getSampleTangentZ(float mu) const
Definition Rope3DSampling.cpp:56
float getSampleTangentY(float mu) const
Definition Rope3DSampling.cpp:55
float getSampleX(float mu) const
Samples current rope position by normalized active material length.
Definition Rope3DSampling.cpp:51
Vec3 interpolate(Vec3 start, Vec3 end, float amount) noexcept
Interpolate.
Definition ClimbingTrajectory.h:16