@@ -150,6 +150,8 @@ export class GameObject implements IGameObjectData
150150 public JointAxisOrAnchor ?: Vector3 ;
151151 public Position ?: Vector3 ;
152152 public Rotation ?: Quaternion ;
153+ public AttachedPos ?: Vector3 ;
154+ public AttachedRot ?: Quaternion ;
153155 public CollisionPlane ?: Vector4 ;
154156 public Velocity ?: Vector3 ;
155157 public Acceleration ?: Vector3 ;
@@ -1381,6 +1383,14 @@ export class GameObject implements IGameObjectData
13811383 {
13821384 go . Rotation = prop ;
13831385 }
1386+ if ( ( prop = Vector3 . fromXMLJS ( obj , 'AttachedPos' ) ) !== undefined )
1387+ {
1388+ go . AttachedPos = prop ;
1389+ }
1390+ if ( ( prop = Quaternion . fromXMLJS ( obj , 'AttachedRot' ) ) !== undefined )
1391+ {
1392+ go . AttachedRot = prop ;
1393+ }
13841394 if ( ( prop = Vector3 . fromXMLJS ( obj , 'Velocity' ) ) !== undefined )
13851395 {
13861396 go . Velocity = prop ;
@@ -2091,6 +2101,14 @@ export class GameObject implements IGameObjectData
20912101 Vector3 . getXML ( sceneObjectPart . ele ( 'OffsetPosition' ) , this . Position ) ;
20922102 }
20932103 Quaternion . getXML ( sceneObjectPart . ele ( 'RotationOffset' ) , this . Rotation ) ;
2104+ if ( this . AttachedPos !== undefined )
2105+ {
2106+ Vector3 . getXML ( sceneObjectPart . ele ( 'AttachedPos' ) , this . AttachedPos ) ;
2107+ }
2108+ if ( this . AttachedRot !== undefined )
2109+ {
2110+ Quaternion . getXML ( sceneObjectPart . ele ( 'AttachedRot' ) , this . AttachedRot ) ;
2111+ }
20942112 Vector3 . getXML ( sceneObjectPart . ele ( 'Velocity' ) , this . Velocity ) ;
20952113 Vector3 . getXML ( sceneObjectPart . ele ( 'AngularVelocity' ) , this . AngularVelocity ) ;
20962114 Vector3 . getXML ( sceneObjectPart . ele ( 'Acceleration' ) , this . Acceleration ) ;
0 commit comments