Skip to content

Commit c3697ae

Browse files
fix typos
1 parent 64bfdcf commit c3697ae

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

scene/3d/spring_bone_collision_3d.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class SpringBoneCollision3D : public Node3D {
7777
void sync_pose();
7878
Transform3D get_transform_from_skeleton(const Transform3D &p_center) const;
7979

80-
Vector3 collide(const Transform3D &p_center, float p_bone_radius, float p_bone_length, const Vector3 &p_current) const;
80+
Vector3 collide(const Transform3D &p_center, float p_bone_radius, float p_bone_length, const Vector3 &p_current_origin, float p_bone_origin_radius, const Vector3 &p_current) const;
8181
static int Dsegmentindexbeingcalculated;
8282

8383
SpringBoneCollision3D();

scene/3d/spring_bone_collision_capsule_3d.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,6 @@ static real_t _closest_capsule_sphere_to_taper(const Vector3 &head, const Vector
221221
// Handle cylindrical springbone case.
222222
// The bone capsule (cylinder) is from (p_current_origin, p_bone_origin_radius) to (p_current, p_bone_radius)
223223
if (p_bone_radius == p_bone_origin_radius) {
224-
225224
// clamp the collision sphere center point to the bone and recalculate it for the capsule
226225
if ((lam < 0.0) || (lam > 1.0)) {
227226
Vector3 bone_sphere_end = (lam < 0.0 ? p_current_origin : p_current);

0 commit comments

Comments
 (0)