Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: umar4911 on August 18th, 2019, 12:20 PM

Title: Object XML Format
Post by: umar4911 on August 18th, 2019, 12:20 PM
Code: [Select]
<?xml version="1.0" encoding="ASCII" ?>
<itemlist>
 <item model="1083" name="Home">
  <position x="-34.6886" y="1763.63" z="32.1387" />
  <rotation format="axisangle" x="0" y="0" z="-0.703279" angle="-0.710914" />
 </item>
</itemlist>

What can be other formats for rotation except axisangle? Is there any for Euler?
Title: Re: Object XML Format
Post by: Sebastian on August 19th, 2019, 07:18 PM
Quaternion if I'm not wrong.
Title: Re: Object XML Format
Post by: Athanatos on August 19th, 2019, 10:01 PM
Isnt axis angle already a quaternion?
Title: Re: Object XML Format
Post by: Sebastian on August 20th, 2019, 10:04 AM
Have no idea. Afaik, there was a "w" rotation too.
Is that what "angle" stands for ?

Ps: there are surely 2 ways to define the rotation, because i've used both. I just don't remember.
When i will put my hands on laptop, i will find the lines and show you, if nobody else do.
Title: Re: Object XML Format
Post by: Athanatos on August 20th, 2019, 11:49 AM
Quote from Sebastian on August 20th, 2019, 10:04 AM
Have no idea. Afaik, there was a "w" rotation too.
Is that what "angle" stands for ?

Ps: there are surely 2 ways to define the rotation, because i've used both. I just don't remember.
When i will put my hands on laptop, i will find the lines and show you, if nobody else do.
Seems to be, since:
x =0,y=0,z=0, angle = 1 is also the default quaternion value (in monogame for example Quaternion.Identity has the value (0,0,0,1) and  thats 0,0,0 as euler angles.