Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: umar4911 on Aug 18, 2019, 11:20 AM

Title: Object XML Format
Post by: umar4911 on Aug 18, 2019, 11:20 AM
<?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 Aug 19, 2019, 06:18 PM
Quaternion if I'm not wrong.
Title: Re: Object XML Format
Post by: NicusorN5 on Aug 19, 2019, 09:01 PM
Isnt axis angle already a quaternion?
Title: Re: Object XML Format
Post by: Sebastian on Aug 20, 2019, 09: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: NicusorN5 on Aug 20, 2019, 10:49 AM
Quote from: Sebastian on Aug 20, 2019, 09:04 AMHave 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.