In your Materials bag there is a special material called ‘Dark Matter’. Dark Matter is not affected by gravity or physics like other materials, so If you place Dark Matter somewhere, it will not fall down.
This makes it is very useful for hanging things from, or building switch mechanics from.
If you are playing LittleBigPlanet PS Vita™ you can set any object to be Static. This will prevent it from moving in any direction.