Usage:
ObjectTemplate.SetPositionOffset
x/y/z
Argument values:
argument 1: |
-0.45/0/0.83, -0.5/0/-0.90, -0.5/0/0, -0.5/0/0.2, -0.5/0/0.41, -0.5/0/0.62, -0.5/0/0.72, -1.5/0/-0.3, -1.5/0/-0.4, -1.5/0/0.104, -1.5/0/0.8, -1.5/0/1.2, -1.539/-0.05/0.883, -1.613/0.339/0.697, -1.778/0.302/1.174, ...
|
Description: This property sets the offset to adjust the actual lift location from the visible Wing.
It exists so that your geometry can be in one place while the actual wing physics are in a
different place. This is important if making a plane where having the lift where the wings
are would cause the plane to rotate itself without input. In other words, the plane might
have a tendency to nose dive while flying along, requiring the pilot to continuously pull up
with their controls. By using an offset the lift can be moved to balance the lift forces on
the plane (make it equal lift in front and behind center of collision model) and as a result
cancel out this tendency and make the plane fly straight.
Using an offset would be the same as adding a template to the plane that is
simply the Wing geometry, then creating
the wing and positioning it in a separate place without any geometry.
Related properties: SetRotation
Used in object types (and how often in each type): RotationalBundle
(1%), Wing (81%)
Used in a total of 43 .con files: Objects.con,
Physics.con
Parent directories of these .con files: objects/Vehicles, Bf1942/Levels
Example: (from objects/Vehicles/Air/Ilyushin/Physics.con)
ObjectTemplate.Create Wing IlyushinAirbreak
ObjectTemplate.SetNetworkableInfo IlyushinWingInfo
ObjectTemplate.SetMinRotation 0/-2/0
ObjectTemplate.SetMaxRotation 0/2/0
ObjectTemplate.SetMaxSpeed 0/30/0
ObjectTemplate.SetAcceleration 0/120/0
ObjectTemplate.SetPitchOffset 0.5
ObjectTemplate.SetPositionOffset 0/0/0
ObjectTemplate.SetFlapLift 4
ObjectTemplate.SetRegulateToLift 4.91
ObjectTemplate.SetWingToRegulatorRatio 1
Go to the ObjectTemplate properties
list page, ObjectTemplate
page, All Properties
list, or Main scripting
page.