CollisionShape2d rotation and pivot question

Godot Version

Godot 4.5.1

Question

So i made a flashlight in my game using a point light 2d and i tried giving it an area2d with a collision shape to detect if any monsters collide with it , my only problem is the rotation of the collision shape. With the point light 2d i could just change the pivot pretty easly and have it rotating depending on the mouse position , that however does not seem to be the case with the collision shape as it doesnt have an offset i could change , any way to change the offset or rotate it differently?

This is a basic look at how the flashlight and area2d look , the cone is the point light and the square is the collision shape:

I think you should add a pivot marker and the body / shape as child and the rotation will be on that pivot marker

1 Like

thanks!

1 Like