Beispiel #1
0
            public void Execute(int index)
            {
                var transformStash = transformStashes[index];
                var entity         = entities[index];

                if (positions.Exists(entity))
                {
                    positions[entity] = new Position {
                        Value = transformStash.position
                    };
                }
                if (rotations.Exists(entity))
                {
                    rotations[entity] = new Rotation {
                        Value = transformStash.rotation
                    };
                }
                if (localPositions.Exists(entity))
                {
                    localPositions[entity] = new LocalPosition {
                        Value = transformStash.localPosition
                    };
                }
                if (localRotations.Exists(entity))
                {
                    localRotations[entity] = new LocalRotation {
                        Value = transformStash.localRotation
                    };
                }
            }
 public void Execute(int i)
 {
     rotations[i] = new LocalRotation {
         Value = math.lookRotationToQuaternion(headings[i].Value, math.up())
     };
 }