Added BoneAttachment component
This commit is contained in:
@@ -24,4 +24,5 @@
|
||||
<xs:include schemaLocation="Components/UniformScale.xsd"/>
|
||||
<xs:include schemaLocation="Components/EditorWidget.xsd"/>
|
||||
<xs:include schemaLocation="Components/Animation.xsd"/>
|
||||
<xs:include schemaLocation="Components/BoneAttachment.xsd"/>
|
||||
</xs:schema>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
||||
<BoneAttachment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="BoneAttachment.xsd">
|
||||
<Name></Name>
|
||||
<PositionOffset X="0" Y="0" Z="0"/>
|
||||
<OrientationOffset X="0" Y="0" Z="0"/>
|
||||
<ScaleOffset X="1" Y="1" Z="1"/>
|
||||
<InheritPosition>true</InheritPosition>
|
||||
<InheritOrientation>true</InheritOrientation>
|
||||
<InheritScale>false</InheritScale>
|
||||
</BoneAttachment>
|
||||
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:t="types">
|
||||
<xs:import schemaLocation="../Types.xsd" namespace="types"/>
|
||||
|
||||
<xs:element name="BoneAttachment">
|
||||
<xs:complexType>
|
||||
<xs:all>
|
||||
<xs:element name="Name" type="t:string" minOccurs="0"/>
|
||||
<xs:element name="PositionOffset" type="t:Vector" minOccurs="0"/>
|
||||
<xs:element name="InheritPosition" type="t:bool" minOccurs="0"/>
|
||||
<xs:element name="OrientationOffset" type="t:Vector" minOccurs="0"/>
|
||||
<xs:element name="InheritOrientation" type="t:bool" minOccurs="0"/>
|
||||
<xs:element name="ScaleOffset" type="t:Vector" minOccurs="0"/>
|
||||
<xs:element name="InheritScale" type="t:bool" minOccurs="0"/>
|
||||
</xs:all>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:schema>
|
||||
@@ -0,0 +1,117 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
||||
<Entity name="AnimationTests" xmlns:c="components" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../Types/Entity.xsd">
|
||||
|
||||
<Components>
|
||||
<c:Transform/>
|
||||
</Components>
|
||||
|
||||
<Children>
|
||||
<Entity>
|
||||
<Components>
|
||||
<c:Model>
|
||||
<Resource>Models/Core/UnitPlane.mesh</Resource>
|
||||
</c:Model>
|
||||
<c:Transform>
|
||||
<Position X="-1.79600012" Y="0.200000003" Z="-5.20000029"/>
|
||||
<Scale X="10" Y="10" Z="10"/>
|
||||
</c:Transform>
|
||||
</Components>
|
||||
<Children/>
|
||||
</Entity>
|
||||
<Entity>
|
||||
<Components>
|
||||
<c:DirectionalLight/>
|
||||
<c:Model>
|
||||
<Resource>Models/DirectionalLightWidget.mesh</Resource>
|
||||
</c:Model>
|
||||
<c:Transform>
|
||||
<Position X="0" Y="2.42800021" Z="-2.80000019"/>
|
||||
<Orientation X="5.51900005" Y="3.65100026" Z="0"/>
|
||||
</c:Transform>
|
||||
</Components>
|
||||
<Children/>
|
||||
</Entity>
|
||||
<Entity>
|
||||
<Components>
|
||||
<c:Animation>
|
||||
<Name>Run</Name>
|
||||
<Time>0.45698878438365576</Time>
|
||||
<Speed>0.5</Speed>
|
||||
</c:Animation>
|
||||
<c:Model>
|
||||
<Resource>Models/AssaultAnimated.mesh</Resource>
|
||||
</c:Model>
|
||||
<c:Transform>
|
||||
<Position X="0" Y="0" Z="0.219988048"/>
|
||||
<Orientation X="0" Y="1.95300007" Z="0"/>
|
||||
</c:Transform>
|
||||
</Components>
|
||||
<Children>
|
||||
<Entity>
|
||||
<Components>
|
||||
<c:PointLight>
|
||||
<Color A="1" B="0.745098054" G="0.623529434" R="1"/>
|
||||
<Radius>12</Radius>
|
||||
<Falloff>0.29999995231628418</Falloff>
|
||||
</c:PointLight>
|
||||
<c:Transform>
|
||||
<Position X="0" Y="2.30650759" Z="0.323329508"/>
|
||||
</c:Transform>
|
||||
</Components>
|
||||
<Children/>
|
||||
</Entity>
|
||||
<Entity>
|
||||
<Components>
|
||||
<c:PointLight>
|
||||
<Color A="1" B="1" G="0.564705908" R="0.56078434"/>
|
||||
<Radius>7</Radius>
|
||||
</c:PointLight>
|
||||
<c:Transform>
|
||||
<Position X="0" Y="1.63035285" Z="-1.18989873"/>
|
||||
</c:Transform>
|
||||
</Components>
|
||||
<Children/>
|
||||
</Entity>
|
||||
<Entity name="Test">
|
||||
<Components>
|
||||
<c:BoneAttachment>
|
||||
<ScaleOffset X="0.200000003" Y="0.200000003" Z="0.200000003"/>
|
||||
<Name>L_Foot</Name>
|
||||
<InheritScale>true</InheritScale>
|
||||
</c:BoneAttachment>
|
||||
<c:Model>
|
||||
<Resource>Models/Core/UnitCube.mesh</Resource>
|
||||
<Color A="1" B="1" G="19.6078434" R="1"/>
|
||||
</c:Model>
|
||||
<c:Transform>
|
||||
<Position X="-0.0864050835" Y="0.271049351" Z="0.442295641"/>
|
||||
<Scale X="0.200000003" Y="0.199999988" Z="0.200000033"/>
|
||||
<Orientation X="-1.9622153" Y="0.00355640799" Z="-3.12462544"/>
|
||||
</c:Transform>
|
||||
</Components>
|
||||
<Children/>
|
||||
</Entity>
|
||||
<Entity name="Test">
|
||||
<Components>
|
||||
<c:BoneAttachment>
|
||||
<ScaleOffset X="0.200000003" Y="0.200000003" Z="0.200000003"/>
|
||||
<Name>R_Foot</Name>
|
||||
<InheritScale>true</InheritScale>
|
||||
</c:BoneAttachment>
|
||||
<c:Model>
|
||||
<Resource>Models/Core/UnitCube.mesh</Resource>
|
||||
<Color A="1" B="1" G="1" R="19.6078434"/>
|
||||
</c:Model>
|
||||
<c:Transform>
|
||||
<Position X="0.120880835" Y="0.045114398" Z="-0.153178662"/>
|
||||
<Scale X="0.200000003" Y="0.200000077" Z="0.200000077"/>
|
||||
<Orientation X="-0.176647186" Y="0.236876175" Z="-3.10332251"/>
|
||||
</c:Transform>
|
||||
</Components>
|
||||
<Children/>
|
||||
</Entity>
|
||||
</Children>
|
||||
</Entity>
|
||||
</Children>
|
||||
|
||||
</Entity>
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
<Components>
|
||||
<c:Transform>
|
||||
<Position X="0" Y="-0.00432979874" Z="0"/>
|
||||
<Position X="2.5629313" Y="-1.99438679" Z="0"/>
|
||||
</c:Transform>
|
||||
</Components>
|
||||
|
||||
@@ -18,16 +18,14 @@
|
||||
<Axis X="1.50000012" Y="-2.20000005" Z="2.10000014"/>
|
||||
</c:RaptorCopter>
|
||||
<c:Transform>
|
||||
<Position X="0" Y="2.87819886" Z="0"/>
|
||||
<Position X="0.00367118185" Y="0" Z="0.200000003"/>
|
||||
</c:Transform>
|
||||
</Components>
|
||||
<Children>
|
||||
<Entity>
|
||||
<Components>
|
||||
<c:Animation>
|
||||
<Name>Crouch Walk</Name>
|
||||
<Time>701.10570384634161</Time>
|
||||
<Speed>32</Speed>
|
||||
<Name>Walk</Name>
|
||||
</c:Animation>
|
||||
<c:Model>
|
||||
<Resource>Models/AssaultAnimated.mesh</Resource>
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
||||
<Entity name="Test" xmlns:c="components" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../Types/Entity.xsd">
|
||||
|
||||
<Components>
|
||||
<c:BoneAttachment>
|
||||
<ScaleOffset X="0.200000003" Y="0.200000003" Z="0.200000003"/>
|
||||
<Name>L_Foot</Name>
|
||||
<InheritScale>true</InheritScale>
|
||||
</c:BoneAttachment>
|
||||
<c:Model>
|
||||
<Resource>Models/Core/UnitCube.mesh</Resource>
|
||||
<Color A="1" B="1" G="19.6078434" R="1"/>
|
||||
</c:Model>
|
||||
<c:Transform>
|
||||
<Position X="-0.0863945931" Y="0.221357167" Z="-0.0781617165"/>
|
||||
<Scale X="0.199999973" Y="0.199999973" Z="0.199999973"/>
|
||||
<Orientation X="-2.80262542" Y="0.0150706368" Z="-3.13294244"/>
|
||||
</c:Transform>
|
||||
</Components>
|
||||
|
||||
<Children/>
|
||||
|
||||
</Entity>
|
||||
Reference in New Issue
Block a user