Making a RigidBody2D that can be pushed other objects, but not push them

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By DONOTJUDGEMYCODE


I am trying to make a RigidBody2D that can collide with other RigidBodies, but cannot push them or move them around. Is this currently possible?


add a code to other “rigidbody”. don’t move if it collides with “player”

ramazan | 2022-02-01 19:00

:bust_in_silhouette: Reply From: rossunger

You might want to look at collisions layers (or collision masks? I can’t remember what they’re called)

You can set it so that object A collides with object B, but not the other way around.