selectionVectorDirAndUp: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " |game1= arma3 |version1= 2.06 |branch= dev " to " |game1= arma3 |version1= 2.06 ") |
Lou Montana (talk | contribs) m (Fix typo) |
||
Line 6: | Line 6: | ||
|arg= global | |arg= global | ||
|descr= Searches for selection in the object model | |descr= Searches for selection in the object model's LOD level, and returns the Direction and Up vectors in model space. | ||
|gr1= Object Manipulation | |gr1= Object Manipulation | ||
Line 16: | Line 16: | ||
|p2= selectionName: [[String]] - selection name (see [[selectionNames]]) | |p2= selectionName: [[String]] - selection name (see [[selectionNames]]) | ||
|p3= LOD: [[String]] or [[Number]] - the LOD that contains the selection | |p3= LOD: [[String]] or [[Number]] - the LOD that contains the selection: | ||
* "Memory" | * [[String]] - can be one of: | ||
* "Geometry" | ** "Memory" | ||
* "FireGeometry" | ** "Geometry" | ||
* "LandContact" | ** "FireGeometry" | ||
* "HitPoints" | ** "LandContact" | ||
* "ViewGeometry" | ** "HitPoints" | ||
** "ViewGeometry" | |||
* [[Number]] - command searches for a LOD with the similar [[LOD resolutions|resolution]] (see [[allLODs]]). | |||
|r1= [[Array]] - in format <nowiki | |r1= [[Array]] - in format [<nowiki/>[[vectorDir]], [[vectorUp]]], where the vectors are in model space | ||
|seealso= [[selectionPosition]] [[selectionNames]] [[allLODs]] | |seealso= [[selectionPosition]] [[selectionNames]] [[allLODs]] | ||
}} | }} |
Revision as of 00:39, 6 October 2021
Description
- Description:
- Searches for selection in the object model's LOD level, and returns the Direction and Up vectors in model space.
- Groups:
- Object Manipulation
Syntax
- Syntax:
- object selectionVectorDirAndUp [selectionName, LOD]
- Parameters:
- object: Object
- selectionName: String - selection name (see selectionNames)
- LOD: String or Number - the LOD that contains the selection:
- String - can be one of:
- "Memory"
- "Geometry"
- "FireGeometry"
- "LandContact"
- "HitPoints"
- "ViewGeometry"
- Number - command searches for a LOD with the similar resolution (see allLODs).
- String - can be one of:
- Return Value:
- Array - in format [vectorDir, vectorUp], where the vectors are in model space
Examples
- Examples:
- Example needed
Additional Information
- See also:
- selectionPosition selectionNames allLODs
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note