summaryrefslogtreecommitdiff
path: root/servers/physics_3d/godot_step_3d.cpp
diff options
context:
space:
mode:
authorYaohua Xiong <xiongyaohua@gmail.com>2022-08-07 18:29:12 +0800
committerYaohua Xiong <xiongyaohua@gmail.com>2022-11-12 12:03:54 +0800
commit5241464a462d4f7ab00ccf8cb4b59f4547fe6639 (patch)
treea5d5376603757fccf7b8854bb5d0ca5b5463902d /servers/physics_3d/godot_step_3d.cpp
parent6521eccaaec2f8dd87373ee15a1fb0d889aef1fd (diff)
Refactor Curv3D and PathFollow3D
This commit makes the following major changes 1. Add "sample_baked_with_rotation()" to Curve3D, making it usable independently. A similar change was made to Curve2D previously. 2. Refactor the _bake() method on Curve3D, using Parallel Transport Frame instead of Frenet Frame. 3. Refactor the sample_* methods, including: i. Factor out common binary search code, following the DRY principe ii. sample_up_vector() interpolated up vector as part of rotation frame(posture) for consistancy and accuracy.
Diffstat (limited to 'servers/physics_3d/godot_step_3d.cpp')
0 files changed, 0 insertions, 0 deletions