Ragdolls and Dismemberment in Godot (easy peasy)

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ธ.ค. 2024

ความคิดเห็น • 6

  • @SmartApe25
    @SmartApe25 16 วันที่ผ่านมา

    can we apply a force in the direction of the hit ? if yes whats the fuction for that and where to place it ? After Starting the skeleton physical simulation?

    • @yeonjum
      @yeonjum  16 วันที่ผ่านมา

      I should have included this in the video
      For knockback, create this function in the hitbox code:
      func apply_knockback():
      var knockback_direction = parent.transform.basis.z
      parent.velocity = knockback_direction * knockback_strength
      and call this function in the take_damage() function
      If you mean applying force to the ragdoll simulation, you can put something like this in your projectile or gun code:
      if collider is PhysicalBone3D:
      var knockback_direction = -transform.basis.z
      collider.linear_velocity = knockback_direction * knockback_strength

    • @SmartApe25
      @SmartApe25 15 วันที่ผ่านมา

      @@yeonjum that was simple ! Thanks man.
      keep progressing i have suscribed.
      look forward to see your future developments with godot.

  • @drawtheword7590
    @drawtheword7590 8 วันที่ผ่านมา

    this is something I have always wanted to know how to do since solders of fortune double helix so thank you

  • @root4098
    @root4098 17 วันที่ผ่านมา

    do you have the project on github? :)

    • @yeonjum
      @yeonjum  17 วันที่ผ่านมา

      i don't, sorry. could you tell me what you need help with?