Chris Paulson Posted August 3, 2010 Share Posted August 3, 2010 There's a get but no set missing in the API. There should be: - SetQuat( TVec4, global/local ) Quote Link to comment Share on other sites More sharing options...
Marleys Ghost Posted August 3, 2010 Share Posted August 3, 2010 EntityQuat I think thats the get not a set Mack wow ... it vanished lol Quote AMD Bulldozer FX-4 Quad Core 4100 Black Edition 2 x 4GB DDR3 1333Mhz Memory Gigabyte GeForce GTX 550 Ti OC 1024MB GDDR5 Windows 7 Home 64 bit BlitzMax 1.50 • Lua 5.1 • MaxGUI 1.41 • UU3D Pro • MessiahStudio Pro • Silo Pro 3D Coat • ShaderMap Pro • Hexagon 2 • Photoshop, Gimp & Paint.NET LE 2.5/3.4 • Skyline • UE4 • CE3 SDK • Unity 5 • Esenthel Engine 2.0 Marleys Ghost's YouTube Channel • Marleys Ghost's Blog "I used to be alive like you .... then I took an arrow to the head" Link to comment Share on other sites More sharing options...
macklebee Posted August 3, 2010 Share Posted August 3, 2010 yeah i reread chris' post a second after i posted it... i guess you could set the quat by using SetEntityMatrix() Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Chris Paulson Posted August 3, 2010 Author Share Posted August 3, 2010 SetEntityMatrix: - Perhaps, if you could maths to work it out but the matrix is in global space is it not? Also the Vec16 structure is undocumented. Quote Link to comment Share on other sites More sharing options...
macklebee Posted August 3, 2010 Share Posted August 3, 2010 yeah good point... well, the structure for a Vec16 (mat4) appears to be position, rotation, quaternion, scale... in that order Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
L B Posted August 4, 2010 Share Posted August 4, 2010 The C# headers will soon have Entity.Quaternion.set. Don't know about the other languages. Quote Link to comment Share on other sites More sharing options...
Chris Paulson Posted August 4, 2010 Author Share Posted August 4, 2010 The C# headers will soon have Entity.Quaternion.set. Don't know about the other languages. How are you doing this, by setting the matrix? I'd be interested in seeing the code for this. Quote Link to comment Share on other sites More sharing options...
TylerH Posted August 11, 2010 Share Posted August 11, 2010 We exposed a set method in the engine.dll The order for the Matrix 4x4 or Vec16 structure is: I Vector: Position X, Position Y, Position Z, Color R J Vector: Rotation X, Rotation Y, Rotation Z, Color G K Vector: Scale X, Scale Y, Scale Z, Color B T Vector: Translation X, Translation Y, Translation Z, 1 (Identity) Quote nVidia 530M Intel Core i7 - 2.3Ghz 8GB DDR3 RAM Windows 7 Ultimate (64x)----- Visual Studio 2010 Ultimate Google Chrome Creative Suite 5 FL Studio 10 Office 15 ----- Expert Professional Expert BMX Programmer ----- Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.