RotationalBundle Type

The RotationalBundle object type is created by ObjectTemplate.Create.

A RotationalBundle is an object that can pivot based on user input, or at a continuous speed. It can also have child objects, such as weapons and springs, making it ideal for turrets and steering.

When creating a RotationalBundle, it is common to specify the range of motion (SetMaxRotation, SetMinRotation), the speed of rotation (SetAcceleration, SetMaxSpeed), and then bind inputs to the different directions (SetInputToYaw, SetInputToPitch, SetInputToRoll).

Used in a total of 122 .con files: Objects.con, Physics.con

Parent directories of these .con files: objects/Vehicles, objects/Stationary_Weapons, objects/Objectives, objects/Buildings, Bf1942/Levels

Example: (from Bf1942/Levels/Battle_of_Britain/Objects/Radar_AA/Objects.con)
   rem ***
   rem ***
   rem ***
   ObjectTemplate.Create RotationalBundle Radar_AA_Allies_Carriage
   ObjectTemplate.NetworkableInfo AA_Allies_TurretInfo
   ObjectTemplate.Geometry Radar_AA_Allies_carriage_m1
   ObjectTemplate.SetMinRotation 0/0/0
   ObjectTemplate.SetMaxRotation 0/0/0
   ObjectTemplate.SetPivotPosition 0/0/0
   ObjectTemplate.SetMaxSpeed 100/0/0
   ObjectTemplate.SetAcceleration 1000/0/0
   ObjectTemplate.SetContinousRotationSpeed 0/0/0
   ObjectTemplate.SetInputToYaw c_PIMouseLookX
   rem ---------------------------------------------------
   rem ObjectTemplate.addTemplate AA_AlliesSeat
   rem ObjectTemplate.setPosition 0.7/0.7/-0.2
   rem ObjectTemplate.setRotation 0/0/0
   ObjectTemplate.AddTemplate Radar_AA_Allies_Cannon
   ObjectTemplate.SetPosition 0/0.987/-0.171
   ObjectTemplate.SetRotation 0/0/0
   ObjectTemplate.AddTemplate Radar_AA_Allies_Roll
   ObjectTemplate.SetPosition 0/0.529/0.187
   ObjectTemplate.SetRotation 0/0/0
   beginrem
   ObjectTemplate.addTemplate Radar_AA_Allies_Crank
   ObjectTemplate.setPosition 0.48/0.76/0.113
   ObjectTemplate.setRotation 0/0/0
   endrem
   rem ---------------------------------------------------
   ObjectTemplate.SetAttachToListener 1
   ObjectTemplate.LoadSoundScript ../../../../../Objects/Vehicles/Land/AA_Base/Sounds/AA_Allies_Carriage.ssc

Properties used with this type of object:
   ObjectTemplate.Acceleration
   ObjectTemplate.AddTemplate
   ObjectTemplate.AttachToListener
   ObjectTemplate.AutomaticPitchStabilization
   ObjectTemplate.AutomaticReset
   ObjectTemplate.AutomaticYawStabilization
   ObjectTemplate.Create
   ObjectTemplate.Geometry
   ObjectTemplate.HasCollisionPhysics
   ObjectTemplate.HasMobilePhysics
   ObjectTemplate.HasResponsePhysics
   ObjectTemplate.InputToPitch
   ObjectTemplate.InputToRoll
   ObjectTemplate.InputToYaw
   ObjectTemplate.LoadSoundScript
   ObjectTemplate.MaxRotation
   ObjectTemplate.MaxSpeed
   ObjectTemplate.MinRotation
   ObjectTemplate.NetworkableInfo
   ObjectTemplate.RememberExcessInput
   ObjectTemplate.SetAcceleration
   ObjectTemplate.SetAttachToListener
   ObjectTemplate.SetAutomaticPitchStabilization
   ObjectTemplate.SetAutomaticReset
   ObjectTemplate.SetAutomaticYawStabilization
   ObjectTemplate.SetContinousRotationSpeed
   ObjectTemplate.SetHasCollisionPhysics
   ObjectTemplate.SetInputToPitch
   ObjectTemplate.SetInputToRoll
   ObjectTemplate.SetInputToYaw
   ObjectTemplate.SetMaxRotation
   ObjectTemplate.SetMaxSpeed
   ObjectTemplate.SetMinRotation
   ObjectTemplate.SetNetworkableInfo
   ObjectTemplate.SetPivotPosition
   ObjectTemplate.SetPosition
   ObjectTemplate.SetPositionOffset
   ObjectTemplate.SetRotation


Go to the ObjectTemplate type list page, ObjectTemplate page, All Types list, Class list, CON file list, or Main scripting page.