umar4911

  • Sr. Member
  • Creating own server!
  • Posts: 474
Object XML Format
«  »
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?
I am gamer, programmer and hacker. Try to find me!
xD

Sebastian

  • VC:MP Beta Tester
  • Something like this: hga hga hga
  • Posts: 946

Athanatos

  • Hero Member
  • Romania Cops N Robbers Lead Developer
  • Posts: 814

Sebastian

  • VC:MP Beta Tester
  • Something like this: hga hga hga
  • Posts: 946
Re: Object XML Format
« Reply #3,  »Last edited
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.

Athanatos

  • Hero Member
  • Romania Cops N Robbers Lead Developer
  • Posts: 814
Re: Object XML Format
« Reply #4,  »
Quote from Sebastian on August 20th, 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.