Trying To Rotate Multiple Collisions All On One Collision

Godot Version

4.2

Question

Hello I have been trying to rotate 3 different collisions all based off of 1 collision

My node chart looks like this right now, I tried grouping them up in area2d’s but it disabled my collisions making me fall through the floor

$OrenCollisions.rotation = rot
		
		
$PlayerSprites.rotation = lerp_angle($PlayerSprites.rotation, rot, 0.5)
		
	if is_on_floor(): #Rotates the collisions and the sprites along slopes
			
		up_direction = get_floor_normal()
			
		rot = slope_steep
			
	else:
		if !floor_checker.is_colliding():
			grounded = false
				
			rot = 0 
			up_direction = Vector2(0, -1)

Here is my code for the rotation of the characters collisions and sprite rotation, I have tried applying .rotation = rot, To other collisions but they rotate on there own axis instead

Can you rotate the parent of these nodes? What’s the big picture issue here? What do you expect to happen versus what really happens?

3 Likes

Sorry for the late response the big picture is they all rotate alongside the main collision which is the one being rotated but once I rotate my crouch or sliding by themselves they start rotating along there center point marker and it just makes all collisions separate


No Rotation Applied


And here is what happens when I rotate the other collisions by themselves they rotate on an entirely different marker then my main collision group

Or are you talking about using a get_parent?