Search the Community
Showing results for tags 'vector'.
Found 2 results
-
simpler way to orientation vector of objects in 3d space?
bi_mg posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hi Guys, i'm searching for a simpler way to rotate objects in 3d Space (yaw, roll, pitch). I never try the tranformation and rotation matrix to solve my problem. My Work: I started to work on worldToModel that takes an "Object Model Box 3D Space (named _ModelOrign) as a Parameter and puts "3D World Coordinades" (named _position) of another Object in this model space. private _modelOrign = _this select 0; private _objectOrign = _this select 1; private _position = _modelOrign worldToModel getPosWorld _objectOrign; So I can easily take the saved _position and apply to a targeting Object (named _modelTarget) that is differend rotating in 3D as the Object _modelOrign. Then I just execute the finction modelToWorld and voila the _position is rotating to the rotated _modelTarget in Model Box 3D Space as well. Nice and easy. privat _objectTarget = _this select 0; privat _modelTarget = _this select 1; privat _position = _this select 2; _objectTarget setPosWorld ( _modelTarget modelToWorld _position ) Orientation: to get the orientation of _objectOrign in 3D Space, i used vectorDir and vectorUp of _ modelOrign to get this orientation and apply it to this _objectOrign with the oriantation itsself. Wiki Source: Euler_angles Problem: I've have no idea to combine these two orientations vectors of _modelOrign and _objectOrign to get this problem of the orientation solved. I never used the transformation and rotation matrix. There sould be an easier way to do this. BIS serve an function BIS_fnc_setPitchBank in the past but I've heard that it is not precisely :/. I've never try it out. I'm sceptic about the documentation of vectorModelToWorld explains that it only use vectorDir and not vectorUp. I never try it. im very sure that there is a modern simpler way to solve this problem by a bunch of Arma 3+ vector functions for example addTorque but I do not understand the explanation at all, i'm not english. thank you -
Hello All! It has been a while since I have posted on the forums! (Personal Life and all that jazz) I have been a member of the community since OFP however, I didn't migrate my usernames and it seems it has all been lost in translation. My original usernames probably included something similar to OChristie etc! ;) Quick Background: OFP, ArmA 1/2/3, VBS 1/2/3. I make terrains and love it! Lampedusa Challenge The best terrain, mission and unit content pack wins! Summary The community that exists for any large game title always manages to bring a new dynamic to its respective platform. With the ease of modification to the ArmA platform since its conception, the possibilities have truly been endless. Because of all of this, I am very interested to see just how far we can take this little project. Lampedusa Island is here. I would do this myself however I don't feel that I have the skill in A3 terrain development and I love the power that the community have! Structure This challenge can be completed as an individual or as a team. The Challenge To create the best or most interesting terrain of Lampedusa, Italy combined with an in depth, diverse and fun mission to explore it. (Think CTI, COOP, Domination). If you want to create a content pack then feel free! Competition Rules You will have no more than 3 months to complete the challenge and all entries MUST be submitted as a reply to the main BI Forums thread by the 1st April 2017. Most importantly have fun! Tools You are able to use any GIS / Terrain / Mission tools that BI authorise the community to use. Data The starter pack contains Imagery, Elevation and Vector data which should point you in the right direction. You can download the data here: LampedusaChallenge.rar (via Google Drive ~275mb) Testing You are welcome to publicly test your Terrains / Missions on the A3 servers. Good luck. P.S. This thread will grow, please feel free to ask questions and I will add any key information to the thread.