#Item can still be moved by player even if velocity x and y is 0

6 messages · Page 1 of 1 (latest)

tardy mulch
#

All is in the title, how to make the items not be affected by the player character, but still collide with him (so that the player can be on the item, but not move them (like it does with a staticbody2D).
The item are characterbody2D, so i think the problem come from that, but i search a way to make that without having to the change the type of the item to a staticbody2D.
How i can do that ?

brazen nest
#

Does the item need to have physics? If it doesn't you could use an Area2D instead.

tardy mulch
#

I have an area2D already, but that doesn't solve the problem

plush nest
#

If an item was only an area2d it can detect collisions ( overlaps ) but couldn't be moved by any collision

tardy mulch
#

It isn't just an area2D, he has a collisionShape2D too

plush nest
#

areas need to collision shape nodes as child or else they wont work