vectorModelToWorld: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Command|= ____________________________________________________________________________________________ |arma3 |= Game |dev|= Game Version |arg= |= Multiplayer Arguments |ef...") |
No edit summary |
||
Line 10: | Line 10: | ||
| [[object]] vectorModelToWorld [x, y, z] |= Syntax | | [[object]] vectorModelToWorld [x, y, z] |= Syntax | ||
|p1= object: [[Object]] |= Parameter 1 | |p1= object: [[Object]] |= Parameter 1 | ||
|p2= [x, y, z]: [[Array]] |= Parameter 2 | |p2= [x, y, z]: [[Array]] - vector in model space |= Parameter 2 | ||
|p3= |= Parameter 3 | |p3= |= Parameter 3 | ||
|p4= |= Parameter 4 | |p4= |= Parameter 4 | ||
|p5= |= Parameter 5 | |p5= |= Parameter 5 | ||
|p6= |= Parameter 6 | |p6= |= Parameter 6 | ||
| [x, y, z]: [[Array]] |= Return Value | | [x, y, z]: [[Array]] - vector in world space |= Return Value | ||
|x1=Convert model space vector [0,-10,4] to world space; vector gets rotate according to the _airplane: | |x1=Convert model space vector [0,-10,4] to world space; vector gets rotate according to the _airplane: | ||
<code>_airplane vectorModelToWorld [0,-10,4];</code>|= Example 1 | <code>_airplane vectorModelToWorld [0,-10,4];</code>|= Example 1 |
Revision as of 13:26, 2 June 2017
Description
- Description:
- Converts vector from model to world space.
- Groups:
- Uncategorised
Syntax
- Syntax:
- object vectorModelToWorld [x, y, z]
- Parameters:
- object: Object
- [x, y, z]: Array - vector in model space
- Return Value:
- [x, y, z]: Array - vector in world space
Examples
- Example 1:
- Convert model space vector [0,-10,4] to world space; vector gets rotate according to the _airplane:
_airplane vectorModelToWorld [0,-10,4];
Additional Information
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