Making specific part of node rotate, however appear to be pointing 90 degrees

25 views Asked by At

Say I have a basic scene tree, like the one below.

Control
    Player: Area2d
        Sprite
    Projectile: Area2d
        Sprite

The Projectile node is a small bullet shaped area2d that is set to spin around the player on contact. I have successfully done this by changing the centre offset and centring it on the player, then simply rotating it. This does what I want. However, whilst it rotates, the bullet shaped projectile visually turns. I don't want this. I want it to always appear to be pointing 90 degrees.

The main problem with my situation is the method on rotating the projectile around the player. Since the centre of the rotation, and the projectile are, in Godot's mind, one Entity, and finding a solution which simply changes what the node's rotation visually is would not work, as then the projectile would not spin around the player at all.

0

There are 0 answers