Super Mario Galaxy Object Database

Objects | Configs | Occurrences

Config: GlobalBarrelGravity

A gravity area that revolves around a barrel-shaped planet. Objects are pulled sideways along the cylinder. If Obj_arg1 is positive, objects will be pulled towards the center axis the closer they are to the gravity area.

Arguments

NameTypeGamesRequired?DescriptionValues
Obj_arg0FloatSMG2False

Useless: Read but never used for anything. Default is 500.

    Obj_arg1FloatSMG2False

    Inwards Pull Distance: Adjusts the inwards pull distance. This essentially specifies the gravity angle towards the center axis. For example, if this value is 800 and the distance to the center axis is 900, the resulting angle towards the center axis is 45°. This is because min(45, 800/900 * 180/pi). Default is -1 which disables inwards pulling.

      Switches

      NameGamesRequired?Description
      SW_ASMG2False

      If used, the gravity will be activated when this switch is activated.

      SW_BSMG2False

      If used, the gravity will be activated when this switch is not activated.

      SW_AWAKESMG2False

      Enables rendering and resumes updates when this switch is active.

      Setup

      NameGamesRequired?DescriptionValues
      BaseMtxFollowerSMG2False

      Can follow another BaseMtxFollowTarget object.

        Properties

        NameGamesDescription
        DemoSimpleCastSMG2

        Continues movement during cutscenes, NPC conversations, etc.