Defining collision info

How are you meant to define uni-directional collision info? (Like up/down/left/right) Using properties? Or can it be done using the shape-based collision editor somehow?