Godot Version
4.2.1
Question
Does CharacterBody2D work with DampenedSpringJoint2D at all?
I tried connecting a CharacterBody2D to a RigidBody2D using a DampenedSpringJoint2D to create a rope-like bond that could never separate, kinda like bread and fred, but yeha it didn’t work at all and now I have no idea why or even how to fix it because i cant find anything to print (i may be dumb)
I tried switching node a to node b
I kept on changing every property/variable of the Joint and other nodes
Changed the player’s movement multiple times
but eventually i just gave up and created the code below to make a really wonky rope
#anvil is the rigid body, the code below is in the player/character body's script
func _physics_process(delta):
anvil_look.look_at(anvil.position)
if position.distance_to(anvil.position) > rope_length:
velocity = Vector2(SPEED * position.distance_to(anvil.position) / rope_length, 0).rotated(anvil_look.rotation)
move_and_slide()
it’s really scuffed so i would appreciate some help or maybe an alternative way to do this
thanks!