Ejemplo n.º 1
0
        public virtual void AttachTo(BaseVehicle vehicle, Vector3 offset, Vector3 rotation)
        {
            AssertNotDisposed();

            if (vehicle == null)
            {
                throw new ArgumentNullException(nameof(vehicle));
            }

            Internal.AttachDynamicObjectToVehicle(Id, vehicle.Id, offset.X, offset.Y, offset.Z, rotation.X,
                                                  rotation.Y, rotation.Z);
        }