get3DENCamera: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
|arma3 | |arma3 | ||
|1.56 | |1.56 | ||
|gr1= Eden Editor | |gr1= Eden Editor | ||
| Returns the camera [[Object]] used by the [[Eden Editor]]. | | Returns the camera [[Object]] used by the [[Eden Editor]]. | ||
| '''get3DENCamera''' | | '''get3DENCamera''' | ||
| [[Object]] | | [[Object]] | ||
Line 19: | Line 19: | ||
[ [<nowiki/>[[sin]] _r,-[[sin]] _p,[[cos]] _r * [[cos]] _p],-_y] [[call]] [[BIS_fnc_rotateVector2D]] | [ [<nowiki/>[[sin]] _r,-[[sin]] _p,[[cos]] _r * [[cos]] _p],-_y] [[call]] [[BIS_fnc_rotateVector2D]] | ||
]; | ]; | ||
</code> | </code> | ||
|x2= <code>//Look at player | |x2= <code>//Look at player | ||
_a = [[positionCameraToWorld]] [0,0,0] [[vectorFromTo]] ([[getPosATL]] [[player]]); | _a = [[positionCameraToWorld]] [0,0,0] [[vectorFromTo]] ([[getPosATL]] [[player]]); | ||
Line 30: | Line 30: | ||
[ [0,-[[sin]] _p,[[cos]] _p],-_y] [[call]] [[BIS_fnc_rotateVector2D]] | [ [0,-[[sin]] _p,[[cos]] _p],-_y] [[call]] [[BIS_fnc_rotateVector2D]] | ||
]; | ]; | ||
</code> | </code> | ||
| | | | ||
Line 62: | Line 62: | ||
[[set3DENLinesVisible]] | [[set3DENLinesVisible]] | ||
[[set3DENObjectType]] | [[set3DENObjectType]] | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= | ||
}} | }} |
Revision as of 01:38, 18 January 2021
Description
- Description:
- Returns the camera Object used by the Eden Editor.
- Groups:
- Eden Editor
Syntax
- Syntax:
- get3DENCamera
- Return Value:
- Object
Examples
- Example 1:
// set exact yaw, pitch, and roll _y = 45; _p = -80; _r = 0; get3DENCamera setVectorDirAndUp [ [ sin _y * cos _p,cos _y * cos _p,sin _p], [ [sin _r,-sin _p,cos _r * cos _p],-_y] call BIS_fnc_rotateVector2D ];
- Example 2:
//Look at player _a = positionCameraToWorld [0,0,0] vectorFromTo (getPosATL player); _y = asin(_a select 0); _b = [_a,_y] call BIS_fnc_rotateVector2D; _z = _b select 2; _p = asin(_z / sqrt((_b select 1)^2 + _z^2)); get3DENCamera setVectorDirAndUp [ _a, [ [0,-sin _p,cos _p],-_y] call BIS_fnc_rotateVector2D ];
Additional Information
- See also:
- get3DENMouseOver add3DENConnection add3DENEventHandler all3DENEntities collect3DENHistory create3DENComposition create3DENEntity current3DENOperation delete3DENEntities do3DENAction get3DENActionState get3DENAttribute get3DENConnections get3DENEntityID get3DENGrid get3DENIconsVisible get3DENLinesVisible get3DENSelected is3DEN is3DENMultiplayer move3DENCamera remove3DENConnection remove3DENEventHandler removeAll3DENEventHandlers set3DENAttributes set3DENGrid set3DENIconsVisible set3DENLinesVisible set3DENObjectType
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
Notes