Exemple #1
0
        /// <summary>
        ///     Adds a raw byte array field to the structure layout.
        /// </summary>
        /// <param name="name">The name of the field.</param>
        /// <param name="offset">The offset (in bytes) of the field from the beginning of the structure.</param>
        /// <param name="size">The size of the raw data to read.</param>
        public void AddRawField(string name, int offset, int size)
        {
            var field = new RawField(name, offset, size);

            _fields.Add(field);
            _fieldsByName[name] = field;
        }
Exemple #2
0
 public Vector3 GetTorqueOnBody(IBody body) => TorqueApplicationFunc(body, RawField.Value(body.Position()));
Exemple #3
0
 /// <summary>
 ///     Adds a raw byte array field to the structure layout.
 /// </summary>
 /// <param name="name">The name of the field.</param>
 /// <param name="offset">The offset (in bytes) of the field from the beginning of the structure.</param>
 /// <param name="size">The size of the raw data to read.</param>
 public void AddRawField(string name, int offset, int size)
 {
     var field = new RawField(name, offset, size);
     _fields.Add(field);
     _fieldsByName[name] = field;
 }
Exemple #4
0
 public Vector3 GetForceOnBody(IBody body) => ForceApplicationFunc(body, RawField.Value(body.Position()));